Skip to content

Commit

Permalink
t/110-compile: remove hard dependency on /usr/include/stdio.h.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
apenwarr committed Jun 15, 2020
1 parent a609491 commit c1054a5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion t/110-compile/hello.o.do
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c1054a5

Please sign in to comment.