Bug 90119

Summary: [WIN] Intermittent failure for jsc return value to propagate through jsDriver.pl
Product: WebKit Reporter: Michael Saboff <msaboff>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   
Bug Depends on: 88118    
Bug Blocks:    

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.