8314242: Update applications/scimark/Scimark.java to accept VM flags

Backport-of: 6bf4a33593
This commit is contained in:
Goetz Lindenmaier
2023-11-07 11:10:48 +00:00
committed by Vitaly Provodin
parent 6594935e63
commit e2ed6d9bdb

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 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
@@ -24,7 +24,6 @@
/*
* @test
* @library /test/lib
* @requires vm.flagless
* @run driver Scimark
*/
@@ -47,7 +46,9 @@ public class Scimark {
+ Scimark.class.getName(), e);
}
OutputAnalyzer output = new OutputAnalyzer(ProcessTools.createJavaProcessBuilder(
System.setProperty("test.noclasspath", "true");
OutputAnalyzer output = new OutputAnalyzer(ProcessTools.createTestJvm(
"-cp", artifacts.get("gov.nist.math.scimark-2.0").toString(),
"jnt.scimark2.commandline", "-large")
.start());