Help for this page

Select Code to Download


  1. or download this
        sub mytool {
          my $ctx = context();
    ...
          $ctx->diag(...);
          $ctx->release; # This is where the bail-on-fail is triggered
        }
    
  2. or download this
        sub mytool {
          $tb->ok(...); # BailOnFail is triggered here
          $tb->diag(...); # Lost
        }