Skip to content

Commit

Permalink
fail on t/TESTS syntax errors. closes google issue 14
Browse files Browse the repository at this point in the history
git-svn-id: http://perl-compiler.googlecode.com/svn/trunk@327 ed534f1a-1453-0410-ab30-dfc593a8b23c
  • Loading branch information
Reini Urban committed Feb 9, 2010
1 parent b2396aa commit 4d08aca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/test.pl
Expand Up @@ -890,7 +890,7 @@ sub run_c_tests {
# add some CC specific tests after 100
# perl -lne "/^\s*sub pp_(\w+)/ && print \$1" lib/B/CC.pm > ccpp
# for p in `cat ccpp`; do echo -n "$p "; grep -m1 " $p[(\[ ]" *.concise; done
#
#
# grep -A1 "coverage: ny" lib/B/CC.pm|grep sub
# pp_stub pp_cond_expr pp_dbstate pp_reset pp_stringify pp_ncmp pp_preinc
# pp_formline pp_enterwrite pp_leavewrite pp_entergiven pp_leavegiven
Expand Down Expand Up @@ -938,6 +938,7 @@ sub run_c_tests {
print sprintf("ok %d # skip\n", $cnt);
} else {
my ($script, $expect) = split />>>+\n/;
die "Invalid empty t/TESTS" if !$script or $expect eq '';
run_cc_test($cnt, $backend, $script, $expect, $keep_c, $keep_c_fail, $todo);
}
$cnt++;
Expand Down

0 comments on commit 4d08aca

Please sign in to comment.