Skip to content

Commit

Permalink
Only run external symbols test on Linux. Closes #304.
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Sep 30, 2022
1 parent 2fac991 commit 47d9c22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.7.1

* The external symbols test now only runs on Linux. It assumes a Linux
environment. Reported by Carlo Cabrera. GitHub #304.

## 1.7.0 - 2022-09-28

* `FD_CLOEXEC` is now set on platforms that do not support `O_CLOEXEC`.
Expand Down
8 changes: 8 additions & 0 deletions t/external_symbols_t.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@

use FindBin qw( $Bin );

_skip_tests_if_not_linux();
_skip_tests_if_required_modules_are_not_present();
_skip_tests_if_nm_is_not_present();
_test_libs_external_symbols();

done_testing();

sub _skip_tests_if_not_linux {
return if $^O eq 'linux';

print "1..0 # skip all tests skipped - this test requires Linux.\n";
exit 0;
}

sub _skip_tests_if_required_modules_are_not_present {
eval <<'EOF';
use Test::More 0.88;
Expand Down

0 comments on commit 47d9c22

Please sign in to comment.