* tests/self-check-cleanup.test: Check that the "hacked" file
`defs-static' used by the test differs from the "vanilla" one
in builddir.  This also offers a little more debugging output.
---
 ChangeLog                     |    7 +++++++
 tests/self-check-cleanup.test |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 67b8b8d..6b43628 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-01  Stefano Lattarini  <[email protected]>
 
+       tests: add sanity check to 'self-check-cleanup.test'
+       * tests/self-check-cleanup.test: Check that the "hacked" file
+       `defs-static' used by the test differs from the "vanilla" one
+       in builddir.  This also offers a little more debugging output.
+
+2011-05-01  Stefano Lattarini  <[email protected]>
+
        testsuite: display reasons for skips to the console
        * tests/Makefile.am (AM_TESTS_ENVIRONMENT): Open file descriptor
        `9' to the original stderr; define `stderr_fileno_' to `9', and
diff --git a/tests/self-check-cleanup.test b/tests/self-check-cleanup.test
index 390d9b5..efd18ee 100755
--- a/tests/self-check-cleanup.test
+++ b/tests/self-check-cleanup.test
@@ -27,6 +27,7 @@ fi
 # We still need a little hack to make ./defs work outside automake's
 # tree `tests' subdirectory.  Not a big deal.
 sed "s|^testbuilddir=.*|testbuilddir='`pwd`'|" ../defs-static >defs-static
+diff ../defs-static defs-static && Exit 99
 cp ../defs .
 
 have_symlinks=false
-- 
1.7.2.3


Reply via email to