8293201: Library detection in runtime/ErrorHandling/TestDwarf.java fails on some systems

Reviewed-by: chagedorn
This commit is contained in:
Aleksey Shipilev 2022-09-01 14:13:51 +00:00
parent 2d10d4f54e
commit 5204528296

View File

@ -176,7 +176,7 @@ public class TestDwarf {
* There are some valid cases where we cannot find source information. Check these.
*/
private static void checkNoSourceLine(String crashOutputString, String line) {
Pattern pattern = Pattern.compile("[CV][\\s\\t]+\\[([a-zA-Z0-9_.]+)\\+0x.+][\\s\\t]+.*\\+0x");
Pattern pattern = Pattern.compile("[CV][\\s\\t]+\\[([a-zA-Z0-9_.]+)\\+0x.+]");
Matcher matcher = pattern.matcher(line);
Asserts.assertTrue(matcher.find(), "Must find library in \"" + line + "\"");
// Check if there are symbols available for library. If not, then we cannot find any source information for this library.