diff --git a/test/jdk/ProblemList.txt b/test/jdk/ProblemList.txt index 6911ede6399..e631a837f25 100644 --- a/test/jdk/ProblemList.txt +++ b/test/jdk/ProblemList.txt @@ -1,6 +1,6 @@ ########################################################################### # -# Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -197,7 +197,6 @@ java/io/pathNames/GeneralWin32.java 8180264 windows- com/sun/management/OperatingSystemMXBean/GetProcessCpuLoad.java 8030957 aix-all com/sun/management/OperatingSystemMXBean/GetSystemCpuLoad.java 8030957 aix-all sun/management/HotspotRuntimeMBean/GetSafepointSyncTime.java 8174734 generic-all -sun/management/jdp/JdpOffTest.java 8175542 generic-all ############################################################################ diff --git a/test/jdk/sun/management/jdp/JdpTestCase.java b/test/jdk/sun/management/jdp/JdpTestCase.java index f3147fdf88a..f9178b5f07c 100644 --- a/test/jdk/sun/management/jdp/JdpTestCase.java +++ b/test/jdk/sun/management/jdp/JdpTestCase.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -77,11 +77,15 @@ public abstract class JdpTestCase { onSocketTimeOut(e); } + if (!shouldContinue()) { + break; + } + if (hasTestLivedLongEnough()) { shutdown(); } - } while (shouldContinue()); + } while (true); log.fine("Test ended successfully."); }