Print offending diff when check-abi fails
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 24 Jun 2014 07:51:20 +0000 (13:21 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 24 Jun 2014 07:57:13 +0000 (13:27 +0530)
The earlier version of check-abi would print a diff of the expected
ABI vs the built ABI when there was a difference.  Bring back this
behaviour.

ChangeLog
Makerules

index 39d294a..9b119b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * Makerules (check-abi): Dump diff of symlist if the test
+       fails.
+
 2014-06-23  Roland McGrath  <roland@hack.frob.com>
 
        * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
index 817d07e..6b30e8c 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1257,7 +1257,8 @@ subdir_check-abi: check-abi
 subdir_update-abi: update-abi
 else
 check-abi: subdir_check-abi
-       if grep -q '^FAIL:' $(objpfx)*/check-abi*.test-result; then exit 1; fi
+       if grep -q '^FAIL:' $(objpfx)*/check-abi*.test-result; then \
+               cat $(objpfx)*/check-abi*.out && exit 1; fi
 update-abi: subdir_update-abi
 endif