8338344: Test TestPrivilegedMode.java intermittent fails java.lang.NoClassDefFoundError: jdk/test/lib/Platform

Reviewed-by: chagedorn, shade
This commit is contained in:
SendaoYan 2024-08-14 18:55:58 +00:00 committed by Aleksey Shipilev
parent aff7936ff0
commit e3a5e265a7

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 2024, 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
@ -100,7 +100,7 @@ public class TestVMProcess {
String bootClassPath = "-Xbootclasspath/a:.";
if (testClassesOnBootClassPath) {
// Add test classes themselves to boot classpath to make them privileged.
bootClassPath += File.pathSeparator + Utils.TEST_CLASSES;
bootClassPath += File.pathSeparator + Utils.TEST_CLASS_PATH;
}
cmds.add(bootClassPath);
cmds.add("-XX:+UnlockDiagnosticVMOptions");