Skip to content

Commit 1e821fd

Browse files
author
svorenova
committed
Update strings regression tests
1 parent c66e886 commit 1e821fd

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
CORE
22
Test.class
3-
--function Test.check
3+
--function Test.check --max-nondet-string-length 1000000000
44
^EXIT=10$
55
^SIGNAL=0$
66
^VERIFICATION FAILED$
77
file Test.java line 20 .*: FAILURE$
88
--
99
--
10-
--max-nondet-string-length is not used on purpose, because this tests the behaviour
11-
of string refinement on very large strings.
10+
This tests the behaviour of string refinement on very large strings.
11+
max-nondet-string-length is set big enough to cause an overflow.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
CORE
22
Test.class
3-
--function Test.checkAbort --trace
3+
--function Test.checkAbort --trace --max-nondet-string-length 1000000000
44
^EXIT=10$
55
^SIGNAL=0$
66
dynamic_object[0-9]*=\(assignment removed\)
77
--
88
--
99
This tests that the object does not appear in the trace, because concretizing
1010
a string of the required length may take too much memory.
11+
max-nondet-string-length is set big enough to cause an overflow.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
Test.class
3-
--function Test.checkMinLength --string-non-empty
3+
--function Test.checkMinLength --string-non-empty --max-nondet-string-length 2000000000
44
^EXIT=10$
55
^SIGNAL=0$
66
assertion.* line 11 function java::Test.checkMinLength.*: SUCCESS
@@ -9,3 +9,5 @@ assertion.* line 17 function java::Test.checkMinLength.*: FAILURE
99
assertion.* line 19 function java::Test.checkMinLength.*: FAILURE
1010
--
1111
^Building error trace
12+
--
13+
max-nondet-string-length is set big enough to cause an overflow.

0 commit comments

Comments
 (0)