Fix last commit.
[pspp] / tests / test-argp-2.sh
index 39132bc4c8103a18d372cf8d53877c89f28e417c..344bf3716b25b1547b021bbca93c7e01fc0c0d3f 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Test suite for argp.
-# Copyright (C) 2006-2008 Free Software Foundation, Inc.
+# Copyright (C) 2006-2010 Free Software Foundation, Inc.
 # This file is part of the GNUlib Library.
 #
 # This program is free software: you can redistribute it and/or modify
@@ -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