aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest/monniaux/csmith/reduce/reduce_wrt_host.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/monniaux/csmith/reduce/reduce_wrt_host.sh b/test/monniaux/csmith/reduce/reduce_wrt_host.sh
index 7666c31b..c72ffe30 100755
--- a/test/monniaux/csmith/reduce/reduce_wrt_host.sh
+++ b/test/monniaux/csmith/reduce/reduce_wrt_host.sh
@@ -9,9 +9,14 @@ then
if $COMPCERT/ccomp $INCLUDE -fall -fno-cse -fno-cse2 -fno-cse3 source.c -o source.ccomp.target
then
qemu-aarch64 -L /usr/aarch64-linux-gnu source.ccomp.target >& source.ccomp.target.out
- if grep checksum source.ccomp.target.out > source.ccomp.target.check && diff source.ccomp.target.check source.gcc.target.check
- then exit 40
- else exit 0
+ if grep checksum source.ccomp.target.out > source.ccomp.target.check
+ then
+ if diff source.ccomp.target.check source.gcc.target.check
+ then exit 40
+ else exit 0
+ fi
+ else
+ exit 50
fi
else
exit 2