From e3c392bf395b14f11ae2a68a7a672147805a0d25 Mon Sep 17 00:00:00 2001 From: Olivier Dion Date: Fri, 25 Oct 2024 12:16:32 -0400 Subject: [PATCH] Add tests without static checker enabled Change-Id: I885fc14e49b29061b843729e10142ff9bd518732 Signed-off-by: Olivier Dion Signed-off-by: Mathieu Desnoyers --- tests/Makefile.am | 12 ++++++------ tests/unit/test-no-sc-cxx.cpp | 2 ++ tests/unit/test-no-sc.c | 2 ++ tests/unit/test-sc-cxx.cpp | 1 - tests/unit/test-sc.c | 1 - 5 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 tests/unit/test-no-sc-cxx.cpp create mode 100644 tests/unit/test-no-sc.c delete mode 100644 tests/unit/test-sc-cxx.cpp delete mode 100644 tests/unit/test-sc.c 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" -- 2.34.1