When running the test with an explicit garbage collector flag (that isn't 
ParallelGC), this test would fail with:


Error occurred during initialization of VM
Multiple garbage collectors selected 


Instead of using `@requires` to limit the test compatibility, I switched the 
test to use more innocuous flags that a) are unlikely to be set for test 
purposes and b) can be harmlessly set multiple times. The exact flags are not 
relevant to the test, we're just testing that the `-XX:` prefix is added.

-------------

Commit messages:
 - Fix test

Changes: https://git.openjdk.org/jdk/pull/29999/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29999&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8378963
  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/29999.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29999/head:pull/29999

PR: https://git.openjdk.org/jdk/pull/29999

Reply via email to