--- /dev/null
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::More tests => 5;
+
+use VPIT::TestHelpers;
+
+pass 'first test';
+
+SKIP: {
+ load_or_skip 'VPIT::NonExistent', '1.23', [ ], 1;
+ fail 'second test';
+}
+
+pass 'third test';
+
+SKIP: {
+ load_or_skip 'Cwd', undef, [ 'not_in_cwd_pm' ], 1;
+ fail 'fourth test';
+}
+
+pass 'fifth test';
--- /dev/null
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::More;
+
+use VPIT::TestHelpers;
+
+load_or_skip_all 'VPIT::NonExistent', '1.23';
+
+plan tests => 1;
+
+fail 'not reached';
--- /dev/null
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::More;
+
+use VPIT::TestHelpers;
+
+load_or_skip_all 'Cwd', undef, [ 'not_in_cwd_pm' ];
+
+plan tests => 1;
+
+fail 'not reached';
--- /dev/null
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::More;
+
+use VPIT::TestHelpers;
+
+load_or_skip_all 'Cwd', undef, [ 'abs_path' ];
+
+plan tests => 1;
+
+my $result = do {
+ local $@;
+ eval 'abs_path $^X';
+};
+
+my $expected = do {
+ require Cwd;
+ Cwd::abs_path($^X);
+};
+
+is $result, $expected, 'Cwd::abs_path() was imported into main';
--- /dev/null
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::Leaner tests => 5;
+
+use VPIT::TestHelpers;
+
+pass 'first test';
+
+SKIP: {
+ load_or_skip 'VPIT::NonExistent', '1.23', [ ], 1;
+ fail 'second test';
+}
+
+pass 'third test';
+
+SKIP: {
+ load_or_skip 'Cwd', undef, [ 'not_in_cwd_pm' ], 1;
+ fail 'fourth test';
+}
+
+pass 'fifth test';
--- /dev/null
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::Leaner;
+
+use VPIT::TestHelpers;
+
+load_or_skip_all 'VPIT::NonExistent', '1.23';
+
+plan tests => 1;
+
+fail 'not reached';
--- /dev/null
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::Leaner;
+
+use VPIT::TestHelpers;
+
+load_or_skip_all 'Cwd', undef, [ 'not_in_cwd_pm' ];
+
+plan tests => 1;
+
+fail 'not reached';
--- /dev/null
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::Leaner;
+
+use VPIT::TestHelpers;
+
+load_or_skip_all 'Cwd', undef, [ 'abs_path' ];
+
+plan tests => 1;
+
+my $result = do {
+ local $@;
+ eval 'abs_path $^X';
+};
+
+my $expected = do {
+ require Cwd;
+ Cwd::abs_path($^X);
+};
+
+is $result, $expected, 'Cwd::abs_path() was imported into main';