Skip to content

Commit d600d1b

Browse files
committed
Fix memory-analyzer regression tests
The make-builds did not refer to the goto-gcc correctly. Also the result of pointer_to_struct test change, but it is consistent now.
1 parent cac7293 commit d600d1b

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

regression/memory-analyzer/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
default: clean tests.log
22

3-
GOTO_GCC_EXE=../../../src/goto-cc/goto-gcc
43
MEMORY_ANALYZER_EXE=../../../src/memory-analyzer/memory-analyzer
54

65
clean:
@@ -9,10 +8,10 @@ clean:
98
$(RM) tests.log
109

1110
test:
12-
@../test.pl -e -p -c "../chain.sh $(MEMORY_ANALYZER_EXE) $(GOTO_GCC_EXE)"
11+
@../test.pl -e -p -c "../chain.sh $(MEMORY_ANALYZER_EXE)"
1312

1413
tests.log: ../test.pl
15-
@../test.pl -e -p -c "../chain.sh $(MEMORY_ANALYZER_EXE) $(GOTO_GCC_EXE)"
14+
@../test.pl -e -p -c "../chain.sh $(MEMORY_ANALYZER_EXE)"
1615

1716
show:
1817
@for dir in *; do \

regression/memory-analyzer/chain.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
set -e
44

5-
#goto_gcc="../../../build/bin/goto-gcc"
5+
goto_gcc=../../../build/bin/goto-gcc
66
memory_analyzer=$1
7-
goto_gcc=$2
7+
#goto_gcc=$2
88
name=${*:$#}
99
name=${name%.exe}
10-
args=${*:3:$#-3}
10+
args=${*:2:$#-2}
1111

1212
$goto_gcc -g -std=c11 -o "${name}.exe" "${name}.c"
1313
$memory_analyzer $args "${name}.exe"

regression/memory-analyzer/pointer_to_struct_01/test.desc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ CORE
22
main.exe
33
--breakpoint checkpoint --symbols p
44
struct S tmp;
5-
tmp = \{ \.next=\(\(struct S \*\)(NULL|0)\) \};
6-
p = &tmp;
7-
p->next = &tmp;
5+
tmp = \{ \.next=\(\(struct S \*\)0\) \};
6+
p = \&tmp;
87
^EXIT=0$
98
^SIGNAL=0$

0 commit comments

Comments
 (0)