[PATCH v2 1/2] test: disable non-C11 atomic tests for MSVC
Andre Muezerie
andremue at linux.microsoft.com
Tue Jan 28 22:16:53 CET 2025
In general, non-C11 atomics are not to be used with MSVC.
This patch skips the non-C11 atomic tests when using MSVC.
Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
---
app/test/test_atomic.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/app/test/test_atomic.c b/app/test/test_atomic.c
index db07159e81..3f26ce88d9 100644
--- a/app/test/test_atomic.c
+++ b/app/test/test_atomic.c
@@ -20,6 +20,7 @@
#include "test.h"
+#ifndef RTE_TOOLCHAIN_MSVC
/*
* Atomic Variables
* ================
@@ -632,3 +633,4 @@ test_atomic(void)
return 0;
}
REGISTER_FAST_TEST(atomic_autotest, false, true, test_atomic);
+#endif /* RTE_TOOLCHAIN_MSVC */
--
2.47.2.vfs.0.1
More information about the dev
mailing list