Add tests without static checker enabled
authorOlivier Dion <odion@efficios.com>
Fri, 25 Oct 2024 16:16:32 +0000 (12:16 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 25 Oct 2024 16:16:33 +0000 (12:16 -0400)
Change-Id: I885fc14e49b29061b843729e10142ff9bd518732
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/Makefile.am
tests/unit/test-no-sc-cxx.cpp [new file with mode: 0644]
tests/unit/test-no-sc.c [new file with mode: 0644]
tests/unit/test-sc-cxx.cpp [deleted file]
tests/unit/test-sc.c [deleted file]

index 152efee8a2b94763b19bf4c73c3729bcdcc83dc7..beb0b3cd3156bb2afd56d890126cb3b5763f53fc 100644 (file)
@@ -15,8 +15,8 @@ noinst_PROGRAMS = \
        regression/side-rcu-test \
        unit/test \
        unit/test-cxx \
-       unit/test-sc \
-       unit/test-sc-cxx \
+       unit/test-no-sc \
+       unit/test-no-sc-cxx \
        unit/demo \
        unit/statedump
 
@@ -39,14 +39,14 @@ unit_test_cxx_LDADD = \
        $(top_builddir)/tests/utils/libtap.la \
        $(RSEQ_LIBS)
 
-unit_test_sc_SOURCES = unit/test-sc.c
-unit_test_sc_LDADD = \
+unit_test_no_sc_SOURCES = unit/test-no-sc.c
+unit_test_no_sc_LDADD = \
        $(top_builddir)/src/libside.la \
        $(top_builddir)/tests/utils/libtap.la \
        $(RSEQ_LIBS)
 
-unit_test_sc_cxx_SOURCES = unit/test-sc-cxx.cpp
-unit_test_sc_cxx_LDADD = \
+unit_test_no_sc_cxx_SOURCES = unit/test-no-sc-cxx.cpp
+unit_test_no_sc_cxx_LDADD = \
        $(top_builddir)/src/libside.la \
        $(top_builddir)/tests/utils/libtap.la \
        $(RSEQ_LIBS)
diff --git a/tests/unit/test-no-sc-cxx.cpp b/tests/unit/test-no-sc-cxx.cpp
new file mode 100644 (file)
index 0000000..20810e9
--- /dev/null
@@ -0,0 +1,2 @@
+#define SIDE_STATIC_CHECK_DISABLE
+#include "test-cxx.cpp"
diff --git a/tests/unit/test-no-sc.c b/tests/unit/test-no-sc.c
new file mode 100644 (file)
index 0000000..cae470f
--- /dev/null
@@ -0,0 +1,2 @@
+#define SIDE_STATIC_CHECK_DISABLE
+#include "test.c"
diff --git a/tests/unit/test-sc-cxx.cpp b/tests/unit/test-sc-cxx.cpp
deleted file mode 100644 (file)
index 2f5a469..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "test-cxx.cpp"
diff --git a/tests/unit/test-sc.c b/tests/unit/test-sc.c
deleted file mode 100644 (file)
index 1873518..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "test.c"
This page took 0.02596 seconds and 4 git commands to generate.