summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2021-03-05 21:41:48 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2021-03-05 22:48:47 -0500
commit6733dc3a8d8c322f422e2570a47663a22385e25a (patch)
tree34e6f8927810de8ff521b6585c56dd44abeb33ef /test
parent008d33fdf221211fa6b7ef9fe987c7e241648509 (diff)
downloadlibfaketime-6733dc3a8d8c322f422e2570a47663a22385e25a.tar.gz
tests: Confirm variadic argument promotion assumptions when INTERCEPT_SYSCALL
The test suite should not succeed if INTERCEPT_SYSCALL is defined but the variadic argument promotion test fails. OTOH, if we're not asking for INTERCEPT_SYSCALL, we don't care about the results of that test.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
index 69eb6ad..1b2a4aa 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -11,6 +11,10 @@ EXPECTATIONS= $(notdir $(basename $(wildcard snippets/*.variable)))
ALL_TESTS = timetest test
+ifneq ($(filter -DINTERCEPT_SYSCALL,${CFLAGS}),)
+ALL_TESTS += confirm_variadic_promotion
+endif
+
all: $(ALL_TESTS)
.c.o: