From: rrt Date: Wed, 14 Mar 2001 10:12:36 +0000 (+0000) Subject: [project @ 2001-03-14 10:12:36 by rrt] X-Git-Tag: Approximately_9120_patches~2419 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=ca19913796c08f56a1eae88ab0b40ef44a942fac;p=ghc-hetmet.git [project @ 2001-03-14 10:12:36 by rrt] Don't use /tmp. /tmp has bad karma! --- diff --git a/ghc/tests/programs/life_space_leak/life.test b/ghc/tests/programs/life_space_leak/life.test index aa35349..41d7928 100644 --- a/ghc/tests/programs/life_space_leak/life.test +++ b/ghc/tests/programs/life_space_leak/life.test @@ -2,16 +2,16 @@ # ./life_space_leak | sum > /tmp/sum-real-$$ -cat > /tmp/sum-expected-$$ << EOTHING +cat > ./sum-expected-$$ << EOTHING 02845 1350 EOTHING -if cmp -s /tmp/sum-real-$$ /tmp/sum-expected-$$ ; then - /bin/rm /tmp/sum*$$ +if cmp -s ./sum-real-$$ ./sum-expected-$$ ; then + /bin/rm ./sum*$$ exit 0 else - echo -n '*** sum I got: ' ; cat /tmp/sum-real-$$ - echo -n '*** sum I expected: ' ; cat /tmp/sum-expected-$$ - /bin/rm /tmp/sum*$$ + echo -n '*** sum I got: ' ; cat ./sum-real-$$ + echo -n '*** sum I expected: ' ; cat ./sum-expected-$$ + /bin/rm ./sum*$$ exit 1 fi