]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix test/recipes/01-test_symbol_presence.t to allow for stripped libraries
authorRichard Levitte <levitte@openssl.org>
Wed, 13 Oct 2021 07:09:05 +0000 (09:09 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 14 Oct 2021 08:59:56 +0000 (10:59 +0200)
It's a small change to the 'nm' call, to have it look at dynamic symbols
rather than the normal ones.

Fixes #16810

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16822)

(cherry picked from commit a85b4de6a6cbe03c46219d4b1c3b2828ca3fd51c)

test/recipes/01-test_symbol_presence.t

index 7f2a2d75b8c5f4c604283c69ed6122c96fede82a..39ed4d447b9b6ce4c61f48cf0c117891a6f12718 100644 (file)
@@ -37,12 +37,12 @@ foreach my $libname (@libnames) {
         *OSTDOUT = *STDOUT;
         open STDERR, ">", devnull();
         open STDOUT, ">", devnull();
-        my @nm_lines = map { s|\R$||; $_ } `nm -Pg $shlibpath 2> /dev/null`;
+        my @nm_lines = map { s|\R$||; $_ } `nm -DPg $shlibpath 2> /dev/null`;
         close STDERR;
         close STDOUT;
         *STDERR = *OSTDERR;
         *STDOUT = *OSTDOUT;
-        skip "Can't run 'nm -Pg $shlibpath' => $?...  ignoring", 2
+        skip "Can't run 'nm -DPg $shlibpath' => $?...  ignoring", 2
             unless $? == 0;
 
         my $bldtop = bldtop_dir();