# HG changeset patch # User Jim Meyering # Date 1226572261 -3600 # Node ID 3a7dcf0942f582f22c96251784470f631258da54 # Parent dd56f948dfe1d3c73e43450f4d9ec6f1b6f5a985 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this test would fail due to the difference in the Report bugs to ... line. The expected address is empty, "<>", while the actual would contain e.g., "". Filter out any address. diff -r dd56f948dfe1 -r 3a7dcf0942f5 ChangeLog --- a/ChangeLog Thu Nov 13 12:52:20 2008 +0100 +++ b/ChangeLog Thu Nov 13 11:31:01 2008 +0100 @@ -1,3 +1,11 @@ +2008-11-13 Jim Meyering + + test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined + * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this + test would fail due to the difference in the Report bugs to ... + line. The expected address is empty, "<>", while the actual + would contain e.g., "". Filter out any address. + 2008-11-12 Bruno Haible lstat: don't compile lstat.c on systems lacking lstat diff -r dd56f948dfe1 -r 3a7dcf0942f5 tests/test-argp-2.sh --- a/tests/test-argp-2.sh Thu Nov 13 12:52:20 2008 +0100 +++ b/tests/test-argp-2.sh Thu Nov 13 11:31:01 2008 +0100 @@ -93,7 +93,9 @@ Report bugs to <>. EOT -./test-argp$EXEEXT --help | func_compare || ERR=1 +# Compare --help output, but filter out any bug-reporting email address. +./test-argp$EXEEXT --help \ + | sed 's/^\(Report bugs to \)<[^>]*>.$/\1<>./' | func_compare || ERR=1 #### # Test ambiguous option handling