Skip to content

Commit c85e9aa

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 c85e9aa

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
add_test_pl_tests(
22
"../chain.sh \
3-
$<TARGET_FILE:memory-analyzer>")
3+
$<TARGET_FILE:memory-analyzer> \
4+
../../../build/bin/goto-gcc")

regression/memory-analyzer/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
default: clean tests.log
22

3-
GOTO_GCC_EXE=../../../src/goto-cc/goto-gcc
43
MEMORY_ANALYZER_EXE=../../../src/memory-analyzer/memory-analyzer
4+
GOTO_GCC_EXE=../../../src/goto-cc/goto-gcc
55

66
clean:
77
find -name '*.exe' -execdir $(RM) '{}' \;

regression/memory-analyzer/chain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
#goto_gcc="../../../build/bin/goto-gcc"
5+
#goto_gcc=../../build/bin/goto-gcc
66
memory_analyzer=$1
77
goto_gcc=$2
88
name=${*:$#}

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)