Skip to content

Commit b6d70f2

Browse files
committed
8303973: Library detection in runtime/ErrorHandling/TestDwarf.java fails on ppc64le RHEL8.5 for libpthread-2.28.so
Reviewed-by: chagedorn
1 parent 2bb990e commit b6d70f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/hotspot/jtreg/runtime/ErrorHandling/TestDwarf.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2023, 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
@@ -171,9 +171,9 @@ private static void runAndCheck(Flags flags, DwarfConstraint... constraints) thr
171171
* There are some valid cases where we cannot find source information. Check these.
172172
*/
173173
private static void checkNoSourceLine(String crashOutputString, String line) {
174-
Pattern pattern = Pattern.compile("[CV][\\s\\t]+\\[([a-zA-Z0-9_.]+)\\+0x.+]");
174+
Pattern pattern = Pattern.compile("[CV][\\s\\t]+\\[([a-zA-Z0-9_.-]+)\\+0x.+]");
175175
Matcher matcher = pattern.matcher(line);
176-
Asserts.assertTrue(matcher.find(), "Must find library in \"" + line + "\"");
176+
Asserts.assertTrue(matcher.find(), "Must find library name in \"" + line + "\"");
177177
// Check if there are symbols available for library. If not, then we cannot find any source information for this library.
178178
// This can happen if this test is run without any JDK debug symbols at all but also for some libraries like libpthread.so
179179
// which usually has no symbols available.

0 commit comments

Comments
 (0)