⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 278854 in webkit


Ignore:
Timestamp:
Jun 14, 2021, 5:54:08 PM (5 years ago)
Author:
keith_miller@apple.com
Message:

run-javascriptcore-tests should print output when a test binary fails by default
​https://bugs.webkit.org/show_bug.cgi?id=226985

Reviewed by Mark Lam.

  • Scripts/run-javascriptcore-tests:

(runTest):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r278847 r278854  
     12021-06-14  Keith Miller  <keith_miller@apple.com>
     2
     3        run-javascriptcore-tests should print output when a test binary fails by default
     4        https://bugs.webkit.org/show_bug.cgi?id=226985
     5
     6        Reviewed by Mark Lam.
     7
     8        * Scripts/run-javascriptcore-tests:
     9        (runTest):
     10
    1112021-06-14  Ryan Haddad  <ryanhaddad@apple.com>
    212
  • trunk/Tools/Scripts/run-javascriptcore-tests

    r277945 r278854  
    631631
    632632    open(TEST, "-|", "@command 2>&1") or die "Failed to run @command";
     633    my $testOutput = "";
    633634    while ( my $line = <TEST> ) {
    634         print $line if ($verbose);
     635        $testOutput .= $line;
    635636    }
    636637    $testResult = close(TEST) ? 0 : $?;
    … …  
    638639
    639640    my $exitStatus = exitStatus($testResult);
     641
     642    print "$testOutput" if ($verbose or $testResult);
    640643    print "$testName completed with rc=$testResult ($exitStatus)\n\n";
    641644
Note: See TracChangeset for help on using the changeset viewer.