]> granicus.if.org Git - curl/commitdiff
Return an error code when extra files are found in filecheck:
authorDan Fandrich <dan@coneharvesters.com>
Tue, 29 Jul 2008 18:57:01 +0000 (18:57 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 29 Jul 2008 18:57:01 +0000 (18:57 +0000)
tests/data/Makefile.am

index 81d5080b40495268d3a5fb4fbf92ead8a224c011..e3312d1f4010f8582262e8c6b77b02aabeaed776 100644 (file)
@@ -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