Skip to content

Commit

Permalink
TEST: Display the correct shared library name
Browse files Browse the repository at this point in the history
In test/recipes/01-test_symbol_presence.t

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #15776)
  • Loading branch information
levitte authored and paulidale committed Jun 15, 2021
1 parent 42cf25f commit 07b8c0a
Showing 1 changed file with 5 additions and 4 deletions.
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}");
}
}

0 comments on commit 07b8c0a

Please sign in to comment.