X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F010_basics%2F020-global-destruction.t;h=42aa362cc88f9672b4663a7f896e9cca103150ae;hb=2fd74baff0fdece8704aa1cf717e3a08a20ab8a5;hp=6ec3a6ba8b4fd64b83af20b0ea8a9707fdb4dc4f;hpb=fde8e43f95fe996fbc2a778aa259feeb04552171;p=gitmo%2FMouse.git diff --git a/t/010_basics/020-global-destruction.t b/t/010_basics/020-global-destruction.t index 6ec3a6b..42aa362 100644 --- a/t/010_basics/020-global-destruction.t +++ b/t/010_basics/020-global-destruction.t @@ -1,7 +1,4 @@ #!/usr/bin/perl -# This is automatically generated by author/import-moose-test.pl. -# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! -use t::lib::MooseCompat; use strict; use warnings; @@ -46,9 +43,14 @@ use Test::More; my $bar = Bar->new; } -ok( - $_, - 'in_global_destruction state is passed to DEMOLISH properly (true)' -) for split //, `$^X t/010_basics/020-global-destruction-helper.pl`; +$? = 0; + +my $blib = $INC{'blib.pm'} ? ' -Mblib ' : ''; +my @status = `$^X $blib t/010_basics/020-global-destruction-helper.pl`; + +ok $status[0], 'in_global_destruction state is passed to DEMOLISH properly (true)'; +ok $status[1], 'in_global_destruction state is passed to DEMOLISH properly (true)'; + +is $?, 0, 'exited successfully'; done_testing;