From: Radoslaw Zarzynski Date: Thu, 17 May 2018 15:57:32 +0000 (-0400) Subject: tests/crypto: print compile warning when NSS is unavailable. X-Git-Tag: v13.2.0~12^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22226%2Fhead;p=ceph.git tests/crypto: print compile warning when NSS is unavailable. Signed-off-by: Radoslaw Zarzynski (cherry picked from commit ff56a6b7e1e502170779802fb121b4f8f0cdc1b6) --- diff --git a/src/test/crypto.cc b/src/test/crypto.cc index 5190a0bfe167..90191f824826 100644 --- a/src/test/crypto.cc +++ b/src/test/crypto.cc @@ -199,6 +199,8 @@ TEST(AES, ValidateLegacy) { ASSERT_EQ(plaintext, restored_plaintext); } +#else +# warning "NSS is not available. Skipping the AES.ValidateLegacy testcase!" #endif // USE_NSS TEST(AES, ValidateSecret) {