@@ -46,15 +46,16 @@ $edited_html =~ s/>/>/g;
4646$edited_html =~ s / "/ "/ g ;
4747$edited_html =~ s / '/ '/ g ;
4848
49- cmp_ok($edited_html , " eq" , $out , " HTML file matches terminal output" );
50- $tests ++;
51-
5249$diff = diff \$edited_html , \$out ;
53- printf " \n %s \n " , " $diff " ;
50+
51+ cmp_ok($edited_html , " eq" , $out , " Checking if HTML file matches terminal output" ) or
52+ diag (" \n %s \n " , " $diff " );
53+
54+ $tests ++;
5455
5556
5657# 2
57- printf " \n %s \n " , " .. running again $prg against \" $uri \" , now with --debug 4 to create HTML output (may take another ~2 minutes)" ;
58+ printf " %s \n " , " .. running again $prg against \" $uri \" , now with --debug 4 to create HTML output (may take another ~2 minutes)" ;
5859# Redirect stderr to /dev/null in order to avoid some unexplained "date: invalid date" error messages
5960$out = ` TERM_WIDTH=120 $prg $check2run --debug 4 $uri 2> /dev/null` ;
6061$debughtml = ` cat $htmlfile ` ;
@@ -79,15 +80,14 @@ $debughtml =~ s/.*built: .*\n//g;
7980$debughtml =~ s / .*Using bash .*\n // g ;
8081# is whole line: s/.*<pattern> .*\n//g;
8182
82- cmp_ok($debughtml , " eq" , $html , " HTML file created with --debug 4 matches HTML file created without --debug" );
83- $tests ++;
84-
8583$diff = diff \$debughtml , \$html ;
86- printf " \n %s \n " , " $diff " ;
8784
85+ cmp_ok($debughtml , " eq" , $html , " Checking if HTML file created with --debug 4 matches HTML file created without --debug" ) or
86+ diag (" \n %s \n " , " $diff " );
87+ $tests ++;
8888
8989
90- printf " \n " ;
90+ printf " \n\n " ;
9191done_testing($tests );
9292
9393
0 commit comments