changeset 8467:987ea3bfa3c5

Produce output that makes it easier to debug failures.
author Bruno Haible <bruno@clisp.org>
date Sun, 18 Mar 2007 00:12:31 +0000
parents c9b54316f274
children 336e69863755
files ChangeLog tests/test-argp-2.sh
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/tests/test-argp-2.sh
+++ b/tests/test-argp-2.sh
@@ -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 @@
 # 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 -
 }  
 
 ####