]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add an 'untested' case when none of the atomic operations are available
authorEvan Hunt <each@isc.org>
Thu, 15 Mar 2018 18:02:31 +0000 (11:02 -0700)
committerEvan Hunt <each@isc.org>
Thu, 15 Mar 2018 19:09:40 +0000 (12:09 -0700)
- this fixes a build failure introduced in change 4913 when
  compiling with ATF and --disable-atomic

(cherry picked from commit 1b3eac926e7e31941c0d29688e2a7ef7c02b0b40)

lib/isc/tests/atomic_test.c

index 3b15f39a286fbb9204d3eb71239e97e5d83b42ab..9eeac88474f1d5862d359f8a54de829bfee0fcd5 100644 (file)
@@ -318,6 +318,19 @@ ATF_TC_BODY(atomic_storeq, tc) {
 }
 #endif
 
+#if !defined(ISC_PLATFORM_HAVEXADD) && \
+    !defined(ISC_PLATFORM_HAVEXADDQ) && \
+    !defined(ISC_PLATFORM_HAVEATOMICSTOREQ)
+ATF_TC(untested);
+ATF_TC_HEAD(untested, tc) {
+       atf_tc_set_md_var(tc, "descr", "skipping aes test");
+}
+ATF_TC_BODY(untested, tc) {
+       UNUSED(tc);
+       atf_tc_skip("AES not available");
+}
+#endif /* !HAVEXADD, !HAVEXADDQ, !HAVEATOMICSTOREQ */
+
 /*
  * Main
  */
@@ -334,5 +347,11 @@ ATF_TP_ADD_TCS(tp) {
 #if defined(ISC_PLATFORM_HAVEATOMICSTOREQ)
        ATF_TP_ADD_TC(tp, atomic_storeq);
 #endif
+#if !defined(ISC_PLATFORM_HAVEXADD) && \
+    !defined(ISC_PLATFORM_HAVEXADDQ) && \
+    !defined(ISC_PLATFORM_HAVEATOMICSTOREQ)
+       ATF_TP_ADD_TC(tp, untested);
+#endif
+
        return (atf_no_error());
 }