+2011-08-12 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ tap: improve some comments in the TAP driver
+ * lib/tap-driver (handle_tap_plan): Improve comments describing
+ possible errors in a "plan with SKIP" directive.
+
2011-08-12 Stefano Lattarini <stefano.lattarini@gmail.com>
tap: non-zero exit status after "Bail out!" should not be reported
# So, if we find it after having already seen at least one TAP result,
# set a flag signaling that no more TAP results are acceptable.
$tap_stopped = 1 if $testno >= 1;
- # If the plan contains a SKIP directive, and it's not an error, we
- # want to report it as a particular kind of SKIP result.
- # If "$testno > 0", we have is an error that will be automatically
- # dealt with later, so don't worry about it here.
- # If "$plan_seen" is true, we have an error due to a repeated plan,
- # and that has already been dealt with above.
+ # If $testno > 0, we have an error ("too many tests run") that will be
+ # automatically dealt with later, so don't worry about it here. If
+ # $plan_seen is true, we have an error due to a repeated plan, and that
+ # has already been dealt with above. Otherwise, we have a valid "plan
+ # with SKIP" specification, and should report it as a particular kind
+ # of SKIP result.
if ($plan->directive && $testno == 0 && !$plan_seen)
{
my $explanation = $plan->explanation ?