From c1054a5902fefcb28ad942ae3df9345b1e4e2b6a Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Mon, 15 Jun 2020 00:33:41 -0400 Subject: [PATCH] t/110-compile: remove hard dependency on /usr/include/stdio.h. This was testing source files outside the current build tree, but if you don't have the file at all, that's not a good reason to fail the test. --- t/110-compile/hello.o.do | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/t/110-compile/hello.o.do b/t/110-compile/hello.o.do index 0b46cff..7ab28a0 100644 --- a/t/110-compile/hello.o.do +++ b/t/110-compile/hello.o.do @@ -1,4 +1,11 @@ -redo-ifchange CC hello.c /usr/include/stdio.h +# This test is meant to confirm some basic redo functionality +# related to static files not in the build tree. But if your +# system doesn't happen to have stdio.h in the usual location, +# let's not explode just for that. +stdio=/usr/include/stdio.h +[ -e "$stdio" ] || stdio= + +redo-ifchange CC hello.c $stdio redo-ifcreate stdio.h ../sleep 3 ./CC hello.c