Skip to content

Commit b2725d5

Browse files
author
thk123
committed
Improved chain.sh to remove old .gb files first
Made the first step of the chain.sh remove the generated .gb file from previous runs. This ensures that if the goto-cc step fails, misleading results are not generated.
1 parent 839f68f commit b2725d5

File tree

1 file changed

+1
-0
lines changed
  • regression/goto-instrument-typedef

1 file changed

+1
-0
lines changed

regression/goto-instrument-typedef/chain.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ GI=$SRC/goto-instrument/goto-instrument
88
OPTS=$1
99
NAME=${2%.c}
1010

11+
rm $NAME.gb
1112
$GC $NAME.c --function fun -o $NAME.gb
1213
echo $GI $OPTS $NAME.gb
1314
$GI $OPTS $NAME.gb

0 commit comments

Comments
 (0)