[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix test-argp-2.sh test failure
From: |
Ralf Wildenhues |
Subject: |
Fix test-argp-2.sh test failure |
Date: |
Wed, 8 Nov 2006 23:49:48 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello there,
Automated building and testing does not help if the testsuite has no
good exposure. However, maybe it will help to increase awareness of
those failures that _are_ reported.
I reported this failure on bug-gnulib on 2006-07-06, it was broken
since the change on 2006-03-13. OK to apply this fix? Are there
glibc synchronization issues here?
Note however that neither the comment in lib/argp-help.c, nor the
tests in tests/tests-argp* consistently begin help messages with
lowercase letters, so you may want to go through them as well.
Cheers,
Ralf
2006-11-08 Ralf Wildenhues <address@hidden>
* lib/argp-help.c: Fix comment to match actual output.
* tests/test-argp-2.sh: Likewise. Fixes test failure.
(func_compare): Fix sed script to be portable.
Index: lib/argp-help.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/argp-help.c,v
retrieving revision 1.25
diff -u -r1.25 argp-help.c
--- lib/argp-help.c 12 Sep 2006 09:06:40 -0000 1.25
+++ lib/argp-help.c 8 Nov 2006 22:45:25 -0000
@@ -1,5 +1,5 @@
/* Hierarchial argument parsing help output
- Copyright (C) 1995-2003, 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 1995-2003, 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Miles Bader <address@hidden>.
@@ -302,9 +302,9 @@
-f ZOT, --foonly=ZOT Glork a foonly
-z, --zaza Snit a zar
- -?, --help Give this help list
- --usage Give a short usage message
- -V, --version Print program version
+ -?, --help give this help list
+ --usage give a short usage message
+ -V, --version print program version
The struct argp_option array for the above could look like:
Index: tests/test-argp-2.sh
===================================================================
RCS file: /cvsroot/gnulib/gnulib/tests/test-argp-2.sh,v
retrieving revision 1.1
diff -u -r1.1 test-argp-2.sh
--- tests/test-argp-2.sh 21 Jan 2006 19:09:06 -0000 1.1
+++ tests/test-argp-2.sh 8 Nov 2006 22:39:43 -0000
@@ -24,7 +24,9 @@
func_compare() {
# If argp was compiled without base_name, it will display full program name
- sed '1{s,: [^ ]*/test-argp,: test-argp,;}' | cmp - $TMP
+ sed '1{
+ s,: [^ ]*/test-argp,: test-argp,
+ }' | cmp - $TMP
}
####
@@ -70,9 +72,9 @@
one one unit
two two units
- -?, --help Give this help list
- --usage Give a short usage message
- -V, --version Print program version
+ -?, --help give this help list
+ --usage give a short usage message
+ -V, --version print program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
- Fix test-argp-2.sh test failure,
Ralf Wildenhues <=