LUCENE-6196 testRelateWithRectangle shouldn't print last shape relation when we fail due to too few predicate occurrences.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene6196@1675777 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2015-04-24 05:17:51 +00:00
parent e2d559d75a
commit 40daf30a83
1 changed files with 10 additions and 6 deletions

View File

@ -66,6 +66,12 @@ public abstract class RectIntersectionTestHelper<S extends Shape> extends Random
TestLog.clear();
if (laps > MINLAPSPERCASE * 1000) {
fail("Did not find enough intersection cases in a reasonable number" +
" of random attempts. CWIDbD: " + i_C + "," + i_W + "," + i_I + "," + i_D + "," + i_bboxD
+ " Laps exceeded " + MINLAPSPERCASE * 1000);
}
Point nearP = randomPointIn(ctx.getWorldBounds());
S s = generateRandomShape(nearP);
@ -148,15 +154,13 @@ public abstract class RectIntersectionTestHelper<S extends Shape> extends Random
break;
default: fail(""+ic);
}
} // switch
} catch (AssertionError e) {
onAssertFail(e, s, r, ic);
}
if (laps > MINLAPSPERCASE * 1000)
fail("Did not find enough intersection cases in a reasonable number" +
" of random attempts. CWIDbD: "+i_C+","+i_W+","+i_I+","+i_D+","+i_bboxD
+ " Laps exceeded "+MINLAPSPERCASE * 1000);
}
} // while loop
System.out.println("Laps: "+laps + " CWIDbD: "+i_C+","+i_W+","+i_I+","+i_D+","+i_bboxD);
}