OpenJDK / jdk / jdk
changeset 59070:b79ee2bf1f1e
8243929: use @requires in serviceability/attach/AttachWithStalePidFile.java test
Reviewed-by: cjplummer
author | iignatyev |
---|---|
date | Wed, 29 Apr 2020 07:08:31 -0700 |
parents | 724aff747bb2 |
children | c1d09ae5c6b6 |
files | test/hotspot/jtreg/serviceability/attach/AttachWithStalePidFile.java |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/test/hotspot/jtreg/serviceability/attach/AttachWithStalePidFile.java Wed Apr 29 21:54:57 2020 +0800 +++ b/test/hotspot/jtreg/serviceability/attach/AttachWithStalePidFile.java Wed Apr 29 07:08:31 2020 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2020, 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 @@ -30,6 +30,7 @@ * @modules java.base/java.lang:open * @modules jdk.attach/sun.tools.attach * @library /test/lib + * @requires os.family != "windows" * @run main AttachWithStalePidFile */ @@ -45,12 +46,6 @@ public class AttachWithStalePidFile { public static void main(String... args) throws Exception { - // this test is only valid on non-Windows platforms - if(Platform.isWindows()) { - System.out.println("This test is only valid on non-Windows platforms."); - return; - } - // Since there might be stale pid-files owned by different // users on the system we may need to retry the test in case we // are unable to remove the existing file.