From e9c74131fcc428d1f60c34e0782de869be1c121d Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Sat, 16 Apr 2022 10:05:40 -0700 Subject: tests: clean whitespace in Makefile --- test/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index 1b2a4aa..0a76a66 100644 --- a/test/Makefile +++ b/test/Makefile @@ -7,7 +7,7 @@ SRC = timetest.c OBJ = ${SRC:.c=.o} TEST_SNIPPETS = $(notdir $(basename $(wildcard snippets/*.c))) -EXPECTATIONS= $(notdir $(basename $(wildcard snippets/*.variable))) +EXPECTATIONS = $(notdir $(basename $(wildcard snippets/*.variable))) ALL_TESTS = timetest test -- cgit v1.2.1 From 7e86fb54192b6c90941e7eedfda950fa0a59e533 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Sat, 16 Apr 2022 10:06:23 -0700 Subject: tests: avoid testing syscall snippets if -DINTERCEPT_SYSCALL is not set See https://bugs.debian.org/1007828 --- test/Makefile | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.1