aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace/btest.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbacktrace/btest.c')
-rw-r--r--libbacktrace/btest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbacktrace/btest.c b/libbacktrace/btest.c
index b1c2a2a..32718ad1 100644
--- a/libbacktrace/btest.c
+++ b/libbacktrace/btest.c
@@ -423,7 +423,8 @@ test5 (void)
fprintf (stderr, "test5: NULL syminfo name\n");
symdata.failed = 1;
}
- else if (strcmp (symdata.name, "global") != 0)
+ else if (!(strncmp (symdata.name, "global", 6) == 0
+ && (symdata.name[6] == '\0'|| symdata.name[6] == '.')))
{
fprintf (stderr,
"test5: unexpected syminfo name got %s expected %s\n",