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
This commit is contained in:
Romain Brenguier 2017-09-28 20:09:12 +01:00
parent df88b49464
commit c24e6c93b2
3 changed files with 18 additions and 0 deletions

View File

@ -1,6 +1,12 @@
public class StringIndexMethods04
{
public static void main(String[] args)
{
String letters = "onatdiffblue";
assert letters.indexOf("diffblue")==2;
}
public static void mainBug(String[] args)
{
String letters = "automatictestcasegenerationatdiffblue";
assert letters.indexOf("diffblue")==28;

View File

@ -0,0 +1,12 @@
KNOWNBUG
StringIndexMethods04.class
--refine-strings --string-max-length 1000 --function StringIndexMethods04.mainBug
^EXIT=10$
^SIGNAL=0$
^\[.*assertion\.1\] .* line 6 .* FAILURE$
^VERIFICATION FAILED$
--
^warning: ignoring
--
This test can randomly fail because the solver does not come up with the right
model on the first iteration and the constraint instatiation adds too many things.