Skip to content

Commit b7ed4c7

Browse files
committed
fix chain.sh to not require quotes in options in test.desc
1 parent 1029635 commit b7ed4c7

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

regression/goto-instrument/chain.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#!/bin/bash
22

3-
SRC=../../../src
3+
src=../../../src
4+
goto_cc=$src/goto-cc/goto-cc
5+
goto_instrument=$src/goto-instrument/goto-instrument
46

5-
GC=$SRC/goto-cc/goto-cc
6-
GI=$SRC/goto-instrument/goto-instrument
7+
name=${@:$#}
8+
name=${name%.c}
79

8-
OPTS=$1
9-
NAME=${2%.c}
10+
args=${@:1:$#-1}
11+
12+
$goto_cc -o $name.gb $name.c
13+
$goto_instrument $args $name.gb
1014

11-
$GC $NAME.c -o $NAME.gb
12-
$GI $OPTS $NAME.gb

regression/goto-instrument/restore-returns1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ret.c
3-
"--escape-analysis --dump-c"
3+
--escape-analysis --dump-c
44
^EXIT=0$
55
^SIGNAL=0$
66
--

regression/goto-instrument/restore-returns2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ret.c
3-
"--escape-analysis --dump-c"
3+
--escape-analysis --dump-c
44
^EXIT=0$
55
^SIGNAL=0$
66
--

0 commit comments

Comments
 (0)