[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] test-argp-2: avoid test failure when PACKAGE_BUGREPORT is define
From: |
Jim Meyering |
Subject: |
[PATCH] test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined |
Date: |
Thu, 13 Nov 2008 11:33:34 +0100 |
Including gnulib-tests in tar, I hit a spurious failure.
This fixes it.
>From 6d9934c39304a25f6b45950af4cd8d602f0694e9 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 13 Nov 2008 11:31:01 +0100
Subject: [PATCH] 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., "<address@hidden>". Filter out any address.
---
ChangeLog | 8 ++++++++
tests/test-argp-2.sh | 4 +++-
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5c1e867..a61d05b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-11-13 Jim Meyering <address@hidden>
+
+ 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., "<address@hidden>". Filter out any address.
+
2008-11-12 Bruno Haible <address@hidden>
lstat: don't compile lstat.c on systems lacking lstat
diff --git a/tests/test-argp-2.sh b/tests/test-argp-2.sh
index 39132bc..93abb52 100755
--- a/tests/test-argp-2.sh
+++ b/tests/test-argp-2.sh
@@ -93,7 +93,9 @@ for any corresponding short options.
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
--
1.6.0.4.879.g9d19a
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined,
Jim Meyering <=