From adc032e7d82fb5448d7971477d30743f870588af Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Tue, 29 Jul 2008 18:57:01 +0000 Subject: Return an error code when extra files are found in filecheck: --- tests/data/Makefile.am | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 81d5080b4..e3312d1f4 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -62,12 +62,15 @@ filecheck: rm test-place/*~; \ for f in $(EXTRA_DIST); do \ if test -f "$(top_srcdir)/tests/data/$$f"; then \ - rm -f test-place/$$f; \ + rm -f "test-place/$$f"; \ else \ echo "$$f is listed but missing!"; \ fi \ done; \ echo "Local files not present in EXTRA_DIST:" ; \ ls test-place; \ - rm -rf test-place + ! ls test-place | grep . >/dev/null ; \ + RC=$$? ; \ + rm -rf test-place ; \ + exit $$RC -- cgit v1.2.3