Skip to content

Commit c24e6c9

Browse files
Update regression test that can randomly fail
This test could randomly fail, it was simplified and the previous version is marked as knownbug. The problem should be corrected by PR 1420
1 parent df88b49 commit c24e6c9

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Binary file not shown.

regression/strings/StringIndexMethods04/StringIndexMethods04.java

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
public class StringIndexMethods04
22
{
33
public static void main(String[] args)
4+
{
5+
String letters = "onatdiffblue";
6+
assert letters.indexOf("diffblue")==2;
7+
}
8+
9+
public static void mainBug(String[] args)
410
{
511
String letters = "automatictestcasegenerationatdiffblue";
612
assert letters.indexOf("diffblue")==28;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
KNOWNBUG
2+
StringIndexMethods04.class
3+
--refine-strings --string-max-length 1000 --function StringIndexMethods04.mainBug
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^\[.*assertion\.1\] .* line 6 .* FAILURE$
7+
^VERIFICATION FAILED$
8+
--
9+
^warning: ignoring
10+
--
11+
This test can randomly fail because the solver does not come up with the right
12+
model on the first iteration and the constraint instatiation adds too many things.

0 commit comments

Comments
 (0)