]> granicus.if.org Git - re2c/commitdiff
- Remove temp files on success
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Fri, 28 Nov 2008 11:48:36 +0000 (11:48 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Fri, 28 Nov 2008 11:48:36 +0000 (11:48 +0000)
re2c/bug2102138-test.sh

index ff0e399fb550f0ee005834bc6e649284ad91198c..c143c9fda05868d686b9cbcdfd1ef2911232ffc1 100755 (executable)
@@ -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