* tests/dejagnu7.test: Enable shell `errexit' flag. Also, avoid
unportable use of fgrep option `-e'.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
+ Avoid possible false negatives in dejagnu7.test.
+ * tests/dejagnu7.test: Enable shell `errexit' flag. Also, avoid
+ unportable use of fgrep option `-e'.
+
* tests/conflnk3.test: Use `test -r FILE' and `test ! -r FILE'
instead of respectively `test -e FILE' and `test ! -e FILE',
since Solaris Sh doesn't grok the latter. Do not SKIP the test
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
required=runtest
. ./defs || Exit 1
+set -e
+
# Check whether DejaGnu supports --status
-runtest --help | $FGREP -e --status || Exit 77
+runtest --help | grep '.*--status' || Exit 77
cat > failtcl << 'END'
#! /bin/sh