Skip to content

Commit d622019

Browse files
author
Joel Allred
committed
Test for concretized string literal in trace
Checks that the string literal is present in the trace even if it is not part of the decision. As a side-effect, this checks that the length is properly assigned to the string, even if it cannot be retrieved from the solver.
1 parent d1e6dce commit d622019

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CORE
2+
test.class
3+
--function test.main --trace
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^\[.*assertion.1\].* line 6.* FAILURE$
7+
abc_constarray=\{ 'a', 'b', 'c' \}
8+
--
9+
--
10+
Check that the string literal used in the constructor is properly concretized
11+
in the trace even if it is not part of the equation.
12+
This is necessary for test generation.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
public class test
2+
{
3+
public static void main()
4+
{
5+
String x = new String("abc");
6+
assert false;
7+
}
8+
}

0 commit comments

Comments
 (0)