Bug 90119 - [WIN] Intermittent failure for jsc return value to propagate through jsDriver.pl
Summary: [WIN] Intermittent failure for jsc return value to propagate through jsDriver.pl
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 88118
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-27 17:53 PDT by Michael Saboff
Modified: 2012-06-27 17:56 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2012-06-27 17:53:11 PDT
In JavaScriptCore/tests/mozilla/jsDriver.pl where an individual test is run and jsc is called, the exit code from running the test is sporadically 126 instead of 0 (success) or 3 (failure).

The relevant code in jsDriver.pl is:
        open (OUTPUT, $shell_command . $file_param . $path .
              $redirect_command . " |");
        @output = <OUTPUT>;
        close (OUTPUT);

After which $? should contain the exit code and/or terminating signal number.  The exit code is in bits 8-15.  Instead of getting the exit code from the jsc command, the exit code returned is 126.

Don't know if this is a windows or perl bug.

This has been coded around as part of the resolution to <https://bugs.webkit.org/show_bug.cgi?id=88118> with an appropriate FIXME in jsDriver.pl referencing this bug.