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

Reviewed-by: dholmes
This commit is contained in:
Leonid Mesnik 2023-08-16 00:15:55 +00:00
parent bc8e9f44a3
commit 6bf4a33593

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());