Skip to content

Commit 545ad66

Browse files
committed
Do not use outdated *-mod.gb file
The regression test wrapper scripts perform a conditional copy of the goto binary, which is meant to cover the case that an invocation of goto-instrument does not generate a goto binary. When regression tests are re-run without an intermittent "clean", the conditional copy was not performed. This may lead to spurious test failures when goto binary versions change.
1 parent 38af220 commit 545ad66

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

regression/contracts/chain.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ else
1919
$goto_cc -o "${name}.gb" "${name}.c"
2020
fi
2121

22+
rm -f "${name}-mod.gb"
2223
$goto_instrument ${args} "${name}.gb" "${name}-mod.gb"
2324
if [ ! -e "${name}-mod.gb" ] ; then
2425
cp "$name.gb" "${name}-mod.gb"

regression/goto-instrument/chain.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ else
1919
$goto_cc -o "${name}.gb" "${name}.c"
2020
fi
2121

22+
rm -f "${name}-mod.gb"
2223
$goto_instrument ${args} "${name}.gb" "${name}-mod.gb"
2324
if [ ! -e "${name}-mod.gb" ] ; then
2425
cp "$name.gb" "${name}-mod.gb"

0 commit comments

Comments
 (0)