diff --git a/t/library/nciutils.t b/t/library/nciutils.t
index f456394..0cad0e9 100644
a
|
b
|
|
15 | 15 | |
16 | 16 | =cut |
17 | 17 | |
| 18 | .include 'iglobals.pasm' |
| 19 | |
18 | 20 | .sub 'main' :main |
19 | 21 | load_bytecode 'Test/More.pbc' |
20 | 22 | |
21 | 23 | .local pmc exports, curr_namespace, test_namespace |
22 | 24 | curr_namespace = get_namespace |
23 | 25 | test_namespace = get_namespace ['Test';'More'] |
24 | | exports = split ' ', 'plan diag ok nok is todo' |
| 26 | exports = split ' ', 'plan diag ok nok is todo skip_all' |
25 | 27 | test_namespace.'export_to'(curr_namespace, exports) |
26 | 28 | |
| 29 | $P0 = getinterp |
| 30 | $P1 = $P0[.IGLOBALS_CONFIG_HASH] |
| 31 | $I1 = $P1['HAS_EXTRA_NCI_THUNKS'] |
| 32 | if $I1 == 1 goto have_enough_nci |
| 33 | $I1 = $P1['HAS_LIBFFI'] |
| 34 | if $I1 == 1 goto have_enough_nci |
| 35 | |
| 36 | skip_all('No NCI thunks') |
| 37 | exit 0 |
| 38 | |
| 39 | have_enough_nci: |
27 | 40 | ## set our plan |
28 | 41 | plan(13) |
29 | 42 | |
diff --git a/t/library/pcre.t b/t/library/pcre.t
index 928bd0b..28cccf7 100644
a
|
b
|
|
7 | 7 | |
8 | 8 | use Test::More; |
9 | 9 | use Parrot::Test tests => 2; |
| 10 | use Parrot::Config qw(%PConfig); |
10 | 11 | |
11 | 12 | =head1 NAME |
12 | 13 | |
… |
… |
|
44 | 45 | skip( 'no pcre-config', Test::Builder->new()->expected_tests() ) |
45 | 46 | unless $has_pcre; |
46 | 47 | |
| 48 | unless ($PConfig{HAS_EXTRA_NCI_THUNKS} || $PConfig{HAS_LIBFFI}) { |
| 49 | skip( 'Parrot built without libffi or extra NCI thunks', |
| 50 | Test::Builder->new()->expected_tests() ); |
| 51 | } |
| 52 | |
47 | 53 | ## 1 |
48 | 54 | ## Check that the library can be loaded and initialized, |
49 | 55 | ## diganose the failure otherwise. |
diff --git a/t/pmc/nci.t b/t/pmc/nci.t
index 6a0a8f1..3c3932d 100644
a
|
b
|
|
32 | 32 | $ENV{TEST_PROG_ARGS} ||= ''; |
33 | 33 | |
34 | 34 | SKIP: { |
| 35 | unless ($PConfig{HAS_EXTRA_NCI_THUNKS} || $PConfig{HAS_LIBFFI}) { |
| 36 | plan skip_all => "Parrot built without libffi or extra NCI thunks"; |
| 37 | } |
35 | 38 | unless ( -e "runtime/parrot/dynext/libnci_test$PConfig{load_ext}" ) { |
36 | 39 | plan skip_all => "Please make libnci_test$PConfig{load_ext}"; |
37 | 40 | } |