Changeset 34174 in webkit for trunk/JavaScriptCore/tests


Ignore:
Timestamp:
May 28, 2008, 10:31:22 AM (17 years ago)
Author:
Adam Roben
Message:

Make run-javascriptcore-tests work with a space in the path to testkjs

Reviewed by Alexey Proskuryakov.

  • tests/mozilla/jsDriver.pl: Quote the path to the engine so that spaces will be interpreted correctly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/tests/mozilla/jsDriver.pl

    r33979 r34174  
    174174# since the last time we looked.)
    175175        if ($last_suite ne $suite || $last_test_dir ne $test_dir) {
    176             $shell_command = &xp_path($engine_command) . " -s ";
     176            # FIXME: Quoting the path this way won't work with paths with
     177            # quotes in them. A better fix would be to use the multi-parameter
     178            # version of open(), but that doesn't work on ActiveState Perl.
     179            $shell_command = "\"" . &xp_path($engine_command) . "\" -s ";
    177180           
    178181            $path = &xp_path($opt_suite_path . $suite . "/shell.js");
Note: See TracChangeset for help on using the changeset viewer.