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 0684691..42690fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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
        locale's decimal-point character.
 
index 5ea7a42..7d73f5c 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 -
 }  
 
 ####