Skip to content

Commit

Permalink
[DIAG][msan] fix libc check string for dladdr1 call (#69359)
Browse files Browse the repository at this point in the history
The check for dladdr1 for shared libc is too strict. Depending on how the system is setup we sometimes pick up the none generic lib name with the version string in it.

Update check to for libc to account for version string.
  • Loading branch information
lei137 committed Oct 19, 2023
1 parent 40a426f commit 6959332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/test/msan/dladdr1_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ int main(int argc, char *argv[]) {
fflush(stdout);
map_ptr = map_ptr->l_next;
}
// CHECK: libc.so
// CHECK: libc{{[\-]*.*}}.so
// CHECK: dladdr1_test
}

Expand Down

0 comments on commit 6959332

Please sign in to comment.