Skip to content

Commit

Permalink
only test Inline if Inline::C present - fix #379
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Feb 1, 2022
1 parent e2adf8f commit 591ce77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion t/inline-with.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ BEGIN {
# See if Inline loads without trouble, or bail out
eval {
require Inline;
require Inline::C;
Inline->import (Config => DIRECTORY => $inline_test_dir , FORCE_BUILD => 1);
# Inline->import ('NOCLEAN');
1;
} or do {
plan skip_all => "Skipped: Inline not installed";
plan skip_all => "Skipped: Inline or Inline::C not installed";
};

if( $Inline::VERSION < 0.83 ) {
Expand Down
3 changes: 2 additions & 1 deletion t/inlinepdlpp.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ BEGIN {
mkdir $inline_test_dir unless -d $inline_test_dir;
eval {
require Inline;
require Inline::C;
Inline->import(Config => DIRECTORY => $inline_test_dir, FORCE_BUILD => 1);
1;
} || plan skip_all => "Skipped: Inline not installed";
} || plan skip_all => "Skipped: Inline or Inline::C not installed";
note "Inline Version: $Inline::VERSION\n";
eval { Inline->VERSION(0.43) };
plan skip_all => "Skipped: not got Inline >= 0.43" if $@;
Expand Down

0 comments on commit 591ce77

Please sign in to comment.