From b2072e4497dbb109d391e89e20c89b87450cf728 Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Sun, 19 Sep 2021 10:00:49 +0200 Subject: fix script to answer 0 if differences --- test/monniaux/csmith/reduce/reduce_wrt_host.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/monniaux/csmith/reduce/reduce_wrt_host.sh b/test/monniaux/csmith/reduce/reduce_wrt_host.sh index 6e01f3a0..23e4208e 100755 --- a/test/monniaux/csmith/reduce/reduce_wrt_host.sh +++ b/test/monniaux/csmith/reduce/reduce_wrt_host.sh @@ -9,7 +9,10 @@ then if $COMPCERT/ccomp $INCLUDE -fall -fno-cse -fno-cse2 -fno-cse3 source.c -o source.ccomp.target then kvx-cluster -- source.ccomp.target >& source.ccomp.target.out - cmp source.ccomp.target.out source.gcc.target.out + if cmp source.ccomp.target.out source.gcc.target.out + then exit 40 + else exit 0 + fi else exit 2 fi -- cgit