Ready for 0.01
[p5sagit/B-Hooks-EndOfScope-WithFallback.git] / t / 05-exception_xs.t
CommitLineData
4befcbc3 1use strict;
2use warnings;
3use Test::More;
4
5use B::Hooks::EndOfScope::WithFallback;
6
7plan skip_all => 'Skiping XS test in fallback mode'
8 unless B::Hooks::EndOfScope::WithFallback::__HAS_VM;
9
10eval q[
11 sub foo {
12 BEGIN {
13 on_scope_end { die 'bar' };
14 }
15 }
16];
17
18like($@, qr/^bar/);
19
20pass('no segfault');
21
22done_testing;