[PATCH] Print offending diff when check-abi fails

Siddhesh Poyarekar siddhesh@redhat.com
Tue Jun 24 06:36:00 GMT 2014


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.

	* Makerules (check-abi): Dump diff of symlist if the test
	fails.

---
 Makerules | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makerules b/Makerules
index 817d07e..6b30e8c 100644
--- 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
 
-- 
1.9.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140624/a53f3be1/attachment.sig>


More information about the Libc-alpha mailing list