From 81818103d281491e4612476a73548cc38a4040f4 Mon Sep 17 00:00:00 2001 From: helly Date: Fri, 28 Nov 2008 11:48:36 +0000 Subject: [PATCH] - Remove temp files on success --- re2c/bug2102138-test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/re2c/bug2102138-test.sh b/re2c/bug2102138-test.sh index ff0e399f..c143c9fd 100755 --- a/re2c/bug2102138-test.sh +++ b/re2c/bug2102138-test.sh @@ -6,5 +6,10 @@ for n in $(find test -name '*2102138*.re'|sed 's,.re,,'); do test -f ${n}.c.temp && mv -f ${n}.c.temp ${n}.c gcc ${n}.c -o ${n}.o ./${n}.o >${n}.out - diff -du ${n}.txt ${n}.out >${n}.cc.diff && echo "OK" || echo "FAIL" + if $(diff -du ${n}.txt ${n}.out >${n}.out.diff); then + echo "OK" + rm -f ${n}.out ${n}.out.diff + else + echo "FAIL" + fi done \ No newline at end of file -- 2.40.0