tests: avoid testing syscall snippets if -DINTERCEPT_SYSCALL is not set

See https://bugs.debian.org/1007828
This commit is contained in:
Daniel Kahn Gillmor
2022-04-16 10:06:23 -07:00
parent e9c74131fc
commit 7e86fb5419

View File

@@ -13,6 +13,9 @@ ALL_TESTS = timetest test
ifneq ($(filter -DINTERCEPT_SYSCALL,${CFLAGS}),)
ALL_TESTS += confirm_variadic_promotion
else
TEST_SNIPPETS := $(filter-out syscall%,${TEST_SNIPPETS})
EXPECTATIONS := $(filter-out syscall%,${EXPECTATIONS})
endif
all: $(ALL_TESTS)