|
@@ -219,21 +219,27 @@ test_hash_init(void)
|
|
}
|
|
}
|
|
|
|
|
|
/* Issue notices about skipped tests. */
|
|
/* Issue notices about skipped tests. */
|
|
-#ifndef HAVE_ARCH__HASH_32
|
|
|
|
- pr_info("__hash_32() has no arch implementation to test.");
|
|
|
|
-#elif HAVE_ARCH__HASH_32 != 1
|
|
|
|
|
|
+#ifdef HAVE_ARCH__HASH_32
|
|
|
|
+#if HAVE_ARCH__HASH_32 != 1
|
|
pr_info("__hash_32() is arch-specific; not compared to generic.");
|
|
pr_info("__hash_32() is arch-specific; not compared to generic.");
|
|
#endif
|
|
#endif
|
|
-#ifndef HAVE_ARCH_HASH_32
|
|
|
|
- pr_info("hash_32() has no arch implementation to test.");
|
|
|
|
-#elif HAVE_ARCH_HASH_32 != 1
|
|
|
|
|
|
+#else
|
|
|
|
+ pr_info("__hash_32() has no arch implementation to test.");
|
|
|
|
+#endif
|
|
|
|
+#ifdef HAVE_ARCH_HASH_32
|
|
|
|
+#if HAVE_ARCH_HASH_32 != 1
|
|
pr_info("hash_32() is arch-specific; not compared to generic.");
|
|
pr_info("hash_32() is arch-specific; not compared to generic.");
|
|
#endif
|
|
#endif
|
|
-#ifndef HAVE_ARCH_HASH_64
|
|
|
|
- pr_info("hash_64() has no arch implementation to test.");
|
|
|
|
-#elif HAVE_ARCH_HASH_64 != 1
|
|
|
|
|
|
+#else
|
|
|
|
+ pr_info("hash_32() has no arch implementation to test.");
|
|
|
|
+#endif
|
|
|
|
+#ifdef HAVE_ARCH_HASH_64
|
|
|
|
+#if HAVE_ARCH_HASH_64 != 1
|
|
pr_info("hash_64() is arch-specific; not compared to generic.");
|
|
pr_info("hash_64() is arch-specific; not compared to generic.");
|
|
#endif
|
|
#endif
|
|
|
|
+#else
|
|
|
|
+ pr_info("hash_64() has no arch implementation to test.");
|
|
|
|
+#endif
|
|
|
|
|
|
pr_notice("%u tests passed.", tests);
|
|
pr_notice("%u tests passed.", tests);
|
|
|
|
|