summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-11-17 11:38:42 -0700
committerEric Blake <ebb9@byu.net>2009-11-17 22:12:01 -0700
commit89fe4c9d24e052d1947575379792613eb82f37cb (patch)
tree4a7d93b352ce47b88621250e9cb8c3adbd33b08c /tests
parentd9d9b262a95d0ed74b5c30569e68252569094f0a (diff)
downloadgnulib-89fe4c9d24e052d1947575379792613eb82f37cb.tar.gz
xalloc-die-tests: optimize
* tests/test-xalloc-die.sh: Reduce number of processes. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test-xalloc-die.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/test-xalloc-die.sh b/tests/test-xalloc-die.sh
index dc9bc37a6f..4b0d2c2be9 100755
--- a/tests/test-xalloc-die.sh
+++ b/tests/test-xalloc-die.sh
@@ -30,7 +30,7 @@ fi
tmpout=t-xalloc-die.tmp-stderr
tmperr=t-xalloc-die.tmp-stdout
-tmpfiles="$tmpout $tmperr ${tmpout}2 ${tmperr}2"
+tmpfiles="$tmpout $tmperr ${tmperr}2"
PATH=".:$PATH"
export PATH
@@ -40,15 +40,13 @@ case $? in
*) (exit 1); exit 1 ;;
esac
-cat $tmperr | tr -d '\015' > ${tmperr}2
-cat $tmpout | tr -d '\015' > ${tmpout}2
+tr -d '\015' < $tmperr > ${tmperr}2 || { (exit 1); exit 1; }
compare - ${tmperr}2 <<\EOF || { (exit 1); exit 1; }
test-xalloc-die: memory exhausted
EOF
-compare - ${tmpout}2 <<\EOF || { (exit 1); exit 1; }
-EOF
+test -s $tmpout && { (exit 1); exit 1; }
rm -fr $tmpfiles