Skip to content

Commit 3dbeb83

Browse files
committed
8314320: Mark runtime/CommandLine/ tests as flagless
Backport-of: f481477144d25bf2b5ee44f202705588bd99d4f4
1 parent 07b580b commit 3dbeb83

23 files changed

+55
-25
lines changed

test/hotspot/jtreg/runtime/CommandLine/BooleanFlagWithInvalidValue.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 8006298
2727
* @summary Setting an invalid value for a bool argument should result in a useful error message
28+
* @requires vm.flagless
2829
* @library /test/lib
2930
* @modules java.base/jdk.internal.misc
3031
* java.management

test/hotspot/jtreg/runtime/CommandLine/CompilerConfigFileWarning.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 7167142
2727
* @summary Warn if unused .hotspot_compiler file is present
28+
* @requires vm.flagless
2829
* @library /test/lib
2930
* @modules java.base/jdk.internal.misc
3031
* java.management

test/hotspot/jtreg/runtime/CommandLine/ConfigFileParsing.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
2525
* @test ConfigFileParsing
2626
* @bug 7158804
2727
* @summary Improve config file parsing
28+
* @requires vm.flagless
2829
* @library /test/lib
2930
* @modules java.base/jdk.internal.misc
3031
* java.management

test/hotspot/jtreg/runtime/CommandLine/ConfigFileWarning.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 7167142
2727
* @summary Warn if unused .hotspot_rc file is present
28+
* @requires vm.flagless
2829
* @library /test/lib
2930
* @modules java.base/jdk.internal.misc
3031
* java.management

test/hotspot/jtreg/runtime/CommandLine/DoubleFlagWithIntegerValue.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
2525
* @test DoubleFlagWithIntegerValue
2626
* @bug 8178364
2727
* @summary Command-line flags of type double should accept integer values
28+
* @requires vm.flagless
2829
* @library /test/lib
2930
* @modules java.base/jdk.internal.misc
3031
* java.management

test/hotspot/jtreg/runtime/CommandLine/FlagWithInvalidValue.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 8006298
2727
* @summary Setting a flag to an invalid value should print a useful error message
28+
* @requires vm.flagless
2829
* @library /test/lib
2930
* @modules java.base/jdk.internal.misc
3031
* java.management

test/hotspot/jtreg/runtime/CommandLine/IgnoreUnrecognizedVMOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -29,7 +29,7 @@
2929
* @test
3030
* @bug 8129855
3131
* @summary -XX:+IgnoreUnrecognizedVMOptions should work according to the spec from JDK-8129855
32-
*
32+
* @requires vm.flagless
3333
* @library /test/lib
3434
* @modules java.base/jdk.internal.misc
3535
* java.management

test/hotspot/jtreg/runtime/CommandLine/NonBooleanFlagWithInvalidBooleanPrefix.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 8006298
2727
* @summary Using a bool (+/-) prefix on non-bool flag should result in a useful error message
28+
* @requires vm.flagless
2829
* @library /test/lib
2930
* @modules java.base/jdk.internal.misc
3031
* java.management

test/hotspot/jtreg/runtime/CommandLine/ObsoleteFlagErrorMessage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,6 +28,7 @@
2828
* @modules java.base/jdk.internal.misc
2929
* @library /test/lib
3030
* @requires vm.debug == true
31+
* @requires vm.flagless
3132
* @run driver ObsoleteFlagErrorMessage
3233
*/
3334

test/hotspot/jtreg/runtime/CommandLine/OptionsValidation/TestJcmdOutput.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,7 @@
2626
* @summary Verify jcmd error message for out-of-range value and for
2727
* value which is not allowed by constraint. Also check that
2828
* jcmd does not print an error message to the target process output.
29+
* @requires vm.flagless
2930
* @library /test/lib
3031
* @modules java.base/jdk.internal.misc
3132
* java.management

0 commit comments

Comments
 (0)