diff --git a/t/porting/libperl.t b/t/porting/libperl.t index f5fb53d2c328..72b4220c6a6c 100644 --- a/t/porting/libperl.t +++ b/t/porting/libperl.t @@ -581,9 +581,11 @@ if (defined $nm_err_tmp) { while (<$nm_err_fh>) { # OS X has weird error where nm warns about # "no name list" but then outputs fine. - if (/nm: no name list/ && $^O eq 'darwin') { - print "# $^O ignoring $nm output: $_"; - next; + if ( $^O eq 'darwin' ) { + if (/nm: no name list/ || /^no symbols$/ ) { + print "# $^O ignoring $nm output: $_"; + next; + } } warn "$0: Unexpected $nm error: $_"; $error++;