* Actually detect errors in pure-perl test
+ * Add prototype to pure-perl pre-5.14 version
0.06 Thu, 14 Jun 2012
* De-retardize XS-less behavior under SpeedyCGI
my ($in_global_destruction, $before_is_installed);
-sub in_global_destruction { $in_global_destruction }
+sub in_global_destruction () { $in_global_destruction }
# This block will fire towards the end of the program execution
# Since there is no way for us to generate an END which will execute *last*
sub DESTROY { my $self = shift; $self->[0]->() }
}
-print "1..4\n";
+print "1..6\n";
my $had_error = 0;
END { $? = $had_error };
ok( defined &in_global_destruction, "exported" );
+ok( defined prototype \&in_global_destruction, "defined prototype" );
+
+ok( prototype \&in_global_destruction eq "", "empty prototype" );
+
ok( !in_global_destruction(), "not in GD" );
our $sg = Test::Scope::Guard->new(sub { ok( in_global_destruction(), "in GD" ) });