Skip to content

Commit 6beeee8

Browse files
committed
Adapt existing regression tests for new command line options
Adapt the malloc failure regression tests to use the new options --overly-large-allocation-check, --overly-large-allocation-returns-null, and --allocate-may-fail
1 parent ff4de42 commit 6beeee8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Diff for: regression/cbmc/malloc-may-fail/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--malloc-may-fail --malloc-fail-null
3+
--allocation-may-fail
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[main.assertion.\d+\] line \d+ assertion p: FAILURE$
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
CORE
22
largest_representable.c
3-
--malloc-fail-assert
3+
--overly-large-allocation-check
44
^EXIT=0$
55
^SIGNAL=0$
6-
^\[malloc.assertion.\d+\] line \d+ max allocation size exceeded: SUCCESS$
6+
^\[malloc.allocate.\d+\] line \d+ .*: SUCCESS$
77
^VERIFICATION SUCCESSFUL$
88
--
99
^warning: ignoring

Diff for: regression/cbmc/malloc-too-large/max_size.desc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
CORE
22
max_size.c
3-
--malloc-fail-assert
3+
--overly-large-allocation-check
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[malloc.assertion.\d+\] line \d+ max allocation size exceeded: FAILURE$
6+
^\[malloc.allocate.\d+\] line \d+ .*: FAILURE$
77
^VERIFICATION FAILED$
88
--
99
^warning: ignoring

Diff for: regression/cbmc/malloc-too-large/one_byte_too_large.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
one_byte_too_large.c
3-
--malloc-fail-null
3+
--overly-large-allocation-returns-null
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[main.assertion.\d+\] line \d+ assertion p: FAILURE$

0 commit comments

Comments
 (0)