+ * Actually detect errors in pure-perl test
+
0.06 Thu, 14 Jun 2012
* De-retardize XS-less behavior under SpeedyCGI
* Test suite now works from within space-containing paths
print "1..4\n";
+my $had_error = 0;
+END { $? = $had_error };
sub ok ($$) {
- print "not " if !$_[0];
+ $had_error++, print "not " if !$_[0];
print "ok";
print " - $_[1]" if defined $_[1];
print "\n";
my @tests = grep { $_ !~ /${this_file}$/ } bsd_glob("$Bin/*.t");
print "1..@{[ scalar @tests ]}\n";
+my $had_error = 0;
+END { $? = $had_error }
sub ok ($$) {
- print "not " if !$_[0];
+ $had_error++, print "not " if !$_[0];
print "ok";
print " - $_[1]" if defined $_[1];
print "\n";
wait;
ok (! $?, "Exit $? from: $^X $fn");
}
-