changeset 47898:0a65c8231efa

8179314: CountedCompleterTest.testForkHelpQuiesce fails with expected:<21> but was:<13> Reviewed-by: martin, psandoz, dholmes
author dl
date Thu, 09 Nov 2017 16:07:21 -0800
parents 53020d8cdf5b
children 1563167c9520
files test/jdk/java/util/concurrent/tck/CountedCompleterTest.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/java/util/concurrent/tck/CountedCompleterTest.java	Thu Nov 09 16:03:37 2017 -0800
+++ b/test/jdk/java/util/concurrent/tck/CountedCompleterTest.java	Thu Nov 09 16:07:21 2017 -0800
@@ -758,6 +758,8 @@
                 CCF f = new LCCF(8);
                 assertSame(f, f.fork());
                 helpQuiesce();
+                while (!f.isDone()) // wait out race
+                    ;
                 assertEquals(21, f.number);
                 assertEquals(0, getQueuedTaskCount());
                 checkCompletedNormally(f);