Skip to content

Commit

Permalink
8317042: G1: Make TestG1ConcMarkStepDurationMillis use createTestJvm
Browse files Browse the repository at this point in the history
Backport-of: 7e39e664cf6d4658b0aa03f9b5162cf7de40de28
  • Loading branch information
GoeLin committed Dec 19, 2023
1 parent 16875f2 commit 9e8cee6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2023, 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
Expand All @@ -25,7 +25,7 @@

/*
* @test TestG1ConcMarkStepDurationMillis
* @requires vm.gc.G1
* @requires vm.gc.G1 & vm.opt.G1ConcMarkStepDurationMillis == null
* @summary Tests argument processing for double type flag, G1ConcMarkStepDurationMillis
* @library /test/lib
* @library /
Expand Down Expand Up @@ -78,7 +78,7 @@ private static void runG1ConcMarkStepDurationMillisTest(String expectedValue, in

Collections.addAll(vmOpts, "-XX:+UseG1GC", "-XX:G1ConcMarkStepDurationMillis="+expectedValue, "-XX:+PrintFlagsFinal", "-version");

ProcessBuilder pb = GCArguments.createJavaProcessBuilder(vmOpts);
ProcessBuilder pb = GCArguments.createTestJvm(vmOpts);
OutputAnalyzer output = new OutputAnalyzer(pb.start());

output.shouldHaveExitValue(expectedResult == PASS ? 0 : 1);
Expand Down

1 comment on commit 9e8cee6

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.