Skip to content

Commit c110623

Browse files
author
Alex Menkov
committed
8357282: Test vmTestbase/nsk/jvmti/AttachOnDemand/attach045/TestDescription.java fails after ClassNotFoundException
Reviewed-by: lmesnik, sspitsyn
1 parent f25f4a3 commit c110623

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

test/hotspot/jtreg/ProblemList.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ vmTestbase/metaspace/gc/firstGC_50m/TestDescription.java 8208250 generic-all
162162
vmTestbase/metaspace/gc/firstGC_99m/TestDescription.java 8208250 generic-all
163163
vmTestbase/metaspace/gc/firstGC_default/TestDescription.java 8208250 generic-all
164164

165-
vmTestbase/nsk/jvmti/AttachOnDemand/attach045/TestDescription.java 8202971 generic-all
166165
vmTestbase/nsk/jvmti/scenarios/capability/CM03/cm03t001/TestDescription.java 8073470 linux-all
167166
vmTestbase/nsk/jvmti/InterruptThread/intrpthrd003/TestDescription.java 8288911 macosx-all
168167

test/hotspot/jtreg/vmTestbase/nsk/share/aod/AODRunnerArgParser.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -106,7 +106,12 @@ public String getTargetApp() {
106106
throw new TestBug("Target application isn't specified");
107107
}
108108

109-
return options.getProperty(TARGET_APP_PARAM);
109+
String target = options.getProperty(TARGET_APP_PARAM);
110+
// target may contain class and arguments in surrounding quotes
111+
if (target.startsWith("\"") && target.endsWith("\"")) {
112+
target = target.substring(1, target.length() - 1);
113+
}
114+
return target;
110115
}
111116

112117
public String getTestedJDK() {

0 commit comments

Comments
 (0)