summaryrefslogtreecommitdiff
path: root/t/011-without-xs.t
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-06-25 04:47:55 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-06-25 04:47:55 +0000
commit7e7ddbe33ca34359d711aee1e0ddebaeb40c2a18 (patch)
tree2a03e101e7b0302f5dcde62ed415a415ecca041d /t/011-without-xs.t
downloadClass-Load-tarball-master.tar.gz
Diffstat (limited to 't/011-without-xs.t')
-rw-r--r--t/011-without-xs.t22
1 files changed, 22 insertions, 0 deletions
diff --git a/t/011-without-xs.t b/t/011-without-xs.t
new file mode 100644
index 0000000..e1d1e43
--- /dev/null
+++ b/t/011-without-xs.t
@@ -0,0 +1,22 @@
+use strict;
+use warnings;
+use Test::More 0.88;
+
+use Test::Requires {
+ 'Test::Without::Module' => 0,
+};
+
+use Test::Without::Module 'Class::Load::XS';
+
+{
+ my @warnings;
+ local $SIG{__WARN__} = sub { push @warnings, @_ };
+ require Class::Load;
+
+ is_deeply(
+ \@warnings, [],
+ 'no warning from Class::Load when Class::Load::XS is not available'
+ );
+}
+
+done_testing();