Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
test262-runner should have basic Windows compatibility
https://bugs.webkit.org/show_bug.cgi?id=240698 Reviewed by Mark Lam. test262-runner currently has a slew of incompabilities on Windows; this patch rectifies enough of them to achieve basic usability. In particular: - When `use` of a module triggers a fork() call, a crash occurs on Windows. Avoid by calling Runner::main() from outside. - This is a WebKit-specific file; use webkitdirs.pm without hesitation and determine jsc binary path using jscPath(). - Don't use `DYLD_FRAMEWORK_PATH=` prefix on Windows. - Remove erroneous quotes from system call. - Use File::Copy::copy instead of cp. - abs_path() of a not-yet-created file is invalid on Windows. But it's also completely unnecessary, as $resultsDir is absolute. - Manually flush progress meter on Windows (since \r without \n will never be flushed automatically). Remaining limitation: - If --child-processes value is too high, the runner will hang. Workaround is to provide a lower number. * Tools/Scripts/test262-runner: * Tools/Scripts/test262/Runner.pm: (processCLI): (main): (getBuildPath): (runTest): (summarizeResults): (printHTMLResults): Canonical link: https://commits.webkit.org/250811@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
2 changed files
with
19 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -71,4 +71,4 @@ BEGIN { | ||
|
||
use Runner; | ||
|
||
exit 0; | ||
Test262::Runner::main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters