Skip to content


8292315: Tests should not rely on specific JAR file names (hotspot)
Browse files Browse the repository at this point in the history
Reviewed-by: vromero
  • Loading branch information
sormuras authored and Vicente Romero committed Aug 18, 2022
1 parent 20a3cb7 commit 62a7fc6
Showing 1 changed file with 1 addition and 9 deletions.
Expand Up @@ -49,22 +49,14 @@ public void testMain() throws Exception {

private static final String classDir = System.getProperty("test.classes");
private static final String mainClass = "TestStreamApp";
private static final String javaClassPath = System.getProperty("java.class.path");
private static final String ps = System.getProperty("path.separator");
private static final String skippedException = "jtreg.SkippedException: Unable to map shared archive: test did not complete";

static void doTest() throws Exception {
String topArchiveName = getNewArchiveName();
String appJar ="streamapp", new File(classDir), null);

String[] classPaths = javaClassPath.split(File.pathSeparator);
String testngJar = null;
for (String path : classPaths) {
if (path.endsWith("testng.jar")) {
testngJar = path;
String testngJar = Path.of(Test.class.getProtectionDomain().getCodeSource().getLocation().toURI()).toString();

String[] testClassNames = { "CustomFJPoolTest" };

Expand Down

1 comment on commit 62a7fc6

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.