summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2022-04-16 10:06:23 -0700
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2022-04-16 10:06:23 -0700
commit7e86fb54192b6c90941e7eedfda950fa0a59e533 (patch)
tree646ad14c185672330854c2f6a1f26f33c93207df
parente9c74131fcc428d1f60c34e0782de869be1c121d (diff)
downloadlibfaketime-7e86fb54192b6c90941e7eedfda950fa0a59e533.tar.gz
tests: avoid testing syscall snippets if -DINTERCEPT_SYSCALL is not set
See https://bugs.debian.org/1007828
-rw-r--r--test/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
index 0a76a66..bc6f400 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -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)