Home
last modified time | relevance | path

Searched refs:failures (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/
DTestDoubleSumAverage.java37 int failures = 0; in main() local
39 failures += testZeroAverageOfNonEmptyStream(); in main()
40 failures += testForCompenstation(); in main()
41 failures += testNonfiniteSum(); in main()
43 if (failures > 0) { in main()
44 throw new RuntimeException("Found " + failures + " numerical failure(s)."); in main()
62 int failures = 0; in testForCompenstation() local
83 failures += compareUlpDifference(expectedSum, stats.getSum(), 3); in testForCompenstation()
84 failures += compareUlpDifference(expectedAvg, stats.getAverage(), 3); in testForCompenstation()
86 failures += compareUlpDifference(expectedSum, in testForCompenstation()
[all …]
/libcore/dalvik/test-rules/src/test/java/libcore/dalvik/system/
DCloseGuardSupportTest.java38 List<Failure> failures = JUnitCore.runClasses(DoesReleaseResource.class).getFailures(); in testDoesReleaseResource() local
39 assertEquals(Collections.emptyList(), failures); in testDoesReleaseResource() local
53 List<Failure> failures = JUnitCore.runClasses(DoesReleaseResourceTwice.class).getFailures(); in testDoesReleaseResourceTwice() local
54 assertEquals(Collections.emptyList(), failures); in testDoesReleaseResourceTwice() local
69 List<Failure> failures = JUnitCore.runClasses(DoesNotReleaseResource.class).getFailures(); in testDoesNotReleaseResource() local
70 assertEquals("Failure count", 1, failures.size()); in testDoesNotReleaseResource()
71 Failure failure = failures.get(0); in testDoesNotReleaseResource()
85 List<Failure> failures = JUnitCore in testDoesNotReleaseResourceDueToFailure() local
88 assertEquals("Failure count", 1, failures.size()); in testDoesNotReleaseResourceDueToFailure()
89 Failure failure = failures.get(0); in testDoesNotReleaseResourceDueToFailure()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DTimeZoneTest.java263 StringBuilder failures = new StringBuilder(); in checkDisplayNames() local
274 failures.append(String.format("\n%20s: LD='%s' LS='%s'!", in checkDisplayNames()
279 failures.append(String.format("\n%20s: SD='%s' SS='%s'!", in checkDisplayNames()
287 failures.append(String.format("\n%20s: SS='%s' LD='%s'!", in checkDisplayNames()
291 failures.append(String.format("\n%20s: LS='%s' SD='%s'!", in checkDisplayNames()
297 failures.append(String.format("\n%20s: LD='%s' SD='%s'!", in checkDisplayNames()
307 failures.append(String.format("\n%s: LD %s", id, longDst)); in checkDisplayNames()
310 failures.append(String.format("\n%s: LS %s", id, longStd)); in checkDisplayNames()
313 failures.append(String.format("\n%s: SD %s", id, shortDst)); in checkDisplayNames()
316 failures.append(String.format("\n%s: SS %s", id, shortStd)); in checkDisplayNames()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/charset/
DStandardCharsetsEncoderTest.java82 List<String> failures = new ArrayList<>(); in testCharset() local
94 failures.add("Expected=" + expectedInfo + ", actual=" + actualInfo); in testCharset()
98 if (!failures.isEmpty()) { in testCharset()
99 fail("Failures:\n" + failures); in testCharset()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2560 private List<AssertionFailedError> failures = new ArrayList<AssertionFailedError>(); field in DecimalFormatTest.FormatTester
2567 failures.add(e); in format()
2576 failures.add(e); in format()
2581 if (failures.isEmpty()) { in throwFailures()
2584 if (failures.size() == 1) { in throwFailures()
2585 throw failures.get(0); in throwFailures()
2588 for (AssertionFailedError failure : failures) { in throwFailures()
/libcore/expectations/
Dknownfailures.txt3 * TODO: Rename this file to account for the fact that it has both tags and known failures
1321 description: "Known failures in URLTest and URLDecoderTest",
1689 a security manager. This suppresses all of these failures.",