Produce output that makes it easier to debug failures.
authorBruno Haible <bruno@clisp.org>
Sun, 18 Mar 2007 00:12:31 +0000 (00:12 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 18 Mar 2007 00:12:31 +0000 (00:12 +0000)
ChangeLog
tests/test-argp-2.sh

index 06846916a8ba9cab5fb39e0b0c5e95a21949597f..42690fc14a565410bdb940b2881dc2e19ec9b4fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-argp-2.sh (func_compare): Output a context diff.
+
 2007-03-17  Bruno Haible  <bruno@clisp.org>
 
        * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
index 5ea7a4297fed587a032e7145a5e835e82a896bb3..7d73f5ccd608b2b48faaff531b34f47e0990432b 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Test suite for argp.
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006-2007 Free Software Foundation, Inc.
 # This file is part of the GNUlib Library.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -26,7 +26,7 @@ func_compare() {
 # If argp was compiled without base_name, it will display full program name
   sed '1{
          s,: [^ ]*/test-argp,: test-argp,
-        }' | cmp - $TMP
+        }' | diff -c $TMP -
 }  
 
 ####