summaryrefslogtreecommitdiff
path: root/indra/test
diff options
context:
space:
mode:
Diffstat (limited to 'indra/test')
-rw-r--r--indra/test/llblowfish_tut.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/indra/test/llblowfish_tut.cpp b/indra/test/llblowfish_tut.cpp
index eb2e4ed0f8..97ed2be760 100644
--- a/indra/test/llblowfish_tut.cpp
+++ b/indra/test/llblowfish_tut.cpp
@@ -93,9 +93,7 @@ namespace tut
template<> template<>
void blowfish_object::test<1>()
{
-#if LL_WINDOWS
- skip_fail("Blowfish only supported on Linux.");
-#else
+#if LL_LINUX
LLUUID blank;
LLBlowfishCipher cipher(&blank.mData[0], UUID_BYTES);
@@ -108,15 +106,15 @@ namespace tut
dst_len = cipher.requiredEncryptionSpace(8);
ensure("encryption space 8",
(dst_len == 16) );
-#endif // LL_WINDOWS
+#else
+ skip_fail("Blowfish only supported on Linux.");
+#endif // LL_LINUX
}
template<> template<>
void blowfish_object::test<2>()
{
-#if LL_WINDOWS
- skip_fail("Blowfish only supported on Linux.");
-#else
+#if LL_LINUX
LLUUID blank;
LLBlowfishCipher cipher(&blank.mData[0], UUID_BYTES);
@@ -130,15 +128,15 @@ namespace tut
result.resize(count);
ensure("encrypt null key", matchFile("blowfish.1.bin", result));
-#endif // LL_WINDOWS
+#else
+ skip_fail("Blowfish only supported on Linux.");
+#endif // LL_LINUX
}
template<> template<>
void blowfish_object::test<3>()
{
-#if LL_WINDOWS
- skip_fail("Blowfish only supported on Linux.");
-#else
+#if LL_LINUX
// same as base64 test id
LLUUID id("526a1e07-a19d-baed-84c4-ff08a488d15e");
LLBlowfishCipher cipher(&id.mData[0], UUID_BYTES);
@@ -153,6 +151,8 @@ namespace tut
result.resize(count);
ensure("encrypt real key", matchFile("blowfish.2.bin", result));
-#endif // LL_WINDOWS
+#else
+ skip_fail("Blowfish only supported on Linux.");
+#endif // LL_LINUX
}
}