Make .tgir diffs fail the check
authorColin Walters <walters@src.gnome.org>
Fri, 6 Feb 2009 18:57:24 +0000 (18:57 +0000)
committerColin Walters <walters@src.gnome.org>
Fri, 6 Feb 2009 18:57:24 +0000 (18:57 +0000)
svn path=/trunk/; revision=1090

tests/scanner/Makefile.am

index e3b84162dbe87e7007d5dab1c9c65ac60460376d..dd3532909c37f865d7e6ca0c93ed5b1b948cbb13 100644 (file)
@@ -151,9 +151,11 @@ post-check:
 %.tgir.check: %.tgir
        @diff -u -U 10 $(srcdir)/$*-expected.tgir $*.tgir; \
        if test "$$?" = "0"; then \
-           echo "* $*.tgir"; \
-           rm -f $*.tgir; \
-        fi
+           echo "* $*.tgir"; \
+           rm -f $*.tgir; \
+       else \
+           exit 1; \
+       fi
 
 distclean-local:
        @if test "$(top_builddir)" != "$(top_srcdir)"; then \