Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST: Display the correct shared library name #15776

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions test/recipes/01-test_symbol_presence.t
Expand Up @@ -39,7 +39,8 @@ note
foreach my $libname (@libnames) {
SKIP:
{
my $shlibpath = bldtop_file(platform->sharedlib("lib$libname"));
my $shlibname = platform->sharedlib("lib$libname");
my $shlibpath = bldtop_file($shlibname);
*OSTDERR = *STDERR;
*OSTDOUT = *STDOUT;
open STDERR, ">", devnull();
Expand Down Expand Up @@ -107,18 +108,18 @@ foreach my $libname (@libnames) {
}

if (scalar @missing) {
note "The following symbols are missing in lib$libname.so:";
note "The following symbols are missing in ${shlibname}:";
foreach (@missing) {
note " $_";
}
}
if (scalar @extra) {
note "The following symbols are extra in lib$libname.so:";
note "The following symbols are extra in ${shlibname}:";
foreach (@extra) {
note " $_";
}
}
ok(scalar @missing == 0,
"check that there are no missing symbols in lib$libname.so");
"check that there are no missing symbols in ${shlibname}");
}
}