Changeset 34180 in webkit for trunk/JavaScriptCore/tests


Ignore:
Timestamp:
May 28, 2008, 1:13:53 PM (17 years ago)
Author:
Adam Roben
Message:

Fix JavaScriptCore tests on OS X

We were quoting the path to testkjs too late, after it had already
been combined with spaces and other options.

  • tests/mozilla/jsDriver.pl: (top level): Move path quoting from here... (sub get_kjs_engine_command): ...to here.
File:
1 edited

Legend:

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

    r34174 r34180  
    174174# since the last time we looked.)
    175175        if ($last_suite ne $suite || $last_test_dir ne $test_dir) {
    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 ";
     176            $shell_command = &xp_path($engine_command) . " -s ";
    180177           
    181178            $path = &xp_path($opt_suite_path . $suite . "/shell.js");
     
    643640   
    644641    if ($opt_shell_path) {
    645         $retval = $opt_shell_path;
     642        # FIXME: Quoting the path this way won't work with paths with quotes in
     643        # them. A better fix would be to use the multi-parameter version of
     644        # open(), but that doesn't work on ActiveState Perl.
     645        $retval = "\"" . $opt_shell_path . "\"";
    646646    } else {
    647647        die "Please specify a full path to the kjs testing engine";
Note: See TracChangeset for help on using the changeset viewer.