diff options
author | Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> | 2014-11-21 18:56:27 +0000 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2014-11-21 18:57:40 +0000 |
commit | 8083d2b47b56808a65b1a2435f2c9801fcd4d312 (patch) | |
tree | 02d9b9073629731b25c9992b66e1b2b113bbab90 /tests | |
parent | c3e8f12fd7c1346c7ecf7e35830279058d51c166 (diff) | |
download | libtool-8083d2b47b56808a65b1a2435f2c9801fcd4d312.tar.gz |
tests: question mark is extended regex for non-GNU grep.
Accepting \? for at-most-once in basic regex is a GNU grep
extension, not accepted by AIX grep for example.
* tests/libtool.at: Use \{0,1\} instead of ? with GREP.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/libtool.at | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtool.at b/tests/libtool.at index a4667904..7431820a 100755 --- a/tests/libtool.at +++ b/tests/libtool.at @@ -116,14 +116,14 @@ for mode in compile link install; do [0], [stdout]) # NOTE: we use "..."'"'"..." to insert a literal quote into the expression # because "...\"..." is not expanded consistently by all shells. - AT_CHECK([$GREP "$mode:.*$match_preflag"'"\?'"$flag\\\\\\\\:test\\\\\\\\"'"\? ' stdout], + AT_CHECK([$GREP "$mode:.*$match_preflag"'"\{0,1\}'"$flag\\\\\\\\:test\\\\\\\\"'"\{0,1\} ' stdout], [0], [ignore]) # Shell metacharacters that should be backslashified by libtool. for mchar in \" \` \$; do AT_CHECK([$LIBTOOL -n --mode=$mode $preargs $preflag"$flag$mchar:test$mchar" $postargs], [0], [stdout]) - AT_CHECK([$GREP "$mode:.*$match_preflag"'"'"\?$flag\\\\$mchar:test\\\\$mchar"'"'"\? " stdout], [0], [ignore]) + AT_CHECK([$GREP "$mode:.*$match_preflag"'"'"\{0,1\}$flag\\\\$mchar:test\\\\$mchar"'"'"\{0,1\} " stdout], [0], [ignore]) done # Shell metacharacters that should be double quoted by libtool, and need |