Skip to content

Commit

Permalink
8338344: Test TestPrivilegedMode.java intermittent fails java.lang.No…
Browse files Browse the repository at this point in the history
…ClassDefFoundError: jdk/test/lib/Platform
  • Loading branch information
sendaoYan committed Aug 14, 2024
1 parent f132b34 commit 756c4be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -100,7 +100,7 @@ private void prepareTestVMFlags(List<String> additionalFlags, TestFrameworkSocke
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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* @summary Test that IR framework successfully adds test class to boot classpath in order to run in privileged mode.
* @modules java.base/jdk.internal.vm.annotation
* @library /test/lib /
* @build jdk.test.lib.Platform
* @run driver ir_framework.tests.TestPrivilegedMode
*/

Expand Down

0 comments on commit 756c4be

Please sign in to comment.