From: Olivier Dion Date: Fri, 25 Oct 2024 16:16:32 +0000 (-0400) Subject: Add tests without static checker enabled X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=e3c392bf395b14f11ae2a68a7a672147805a0d25;p=libside.git Add tests without static checker enabled Change-Id: I885fc14e49b29061b843729e10142ff9bd518732 Signed-off-by: Olivier Dion Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 152efee..beb0b3c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 index 0000000..20810e9 --- /dev/null +++ b/tests/unit/test-no-sc-cxx.cpp @@ -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 index 0000000..cae470f --- /dev/null +++ b/tests/unit/test-no-sc.c @@ -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 index 2f5a469..0000000 --- a/tests/unit/test-sc-cxx.cpp +++ /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 index 1873518..0000000 --- a/tests/unit/test-sc.c +++ /dev/null @@ -1 +0,0 @@ -#include "test.c"