⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 106877 in webkit


Ignore:
Timestamp:
Feb 6, 2012, 4:53:23 PM (15 years ago)
Author:
kov@webkit.org
Message:

Do not try to chdir to the directory where the executable is in
only if the path is absolute. This makes tests runnable from
anywhere.

Reviewed by Martin Robinson.

  • tests/test_utils.c:

(testutils_relative_chdir):

Location:
trunk/Source/WebKit/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/gtk/ChangeLog

    r106851 r106877  
     12012-02-06  Gustavo Noronha Silva  <gns@gnome.org>
     2
     3        Do not try to chdir to the directory where the executable is in
     4        only if the path is absolute. This makes tests runnable from
     5        anywhere.
     6
     7        Reviewed by Martin Robinson.
     8
     9        * tests/test_utils.c:
     10        (testutils_relative_chdir):
     11
    1122012-02-06  Gustavo Noronha Silva  <gns@gnome.org>
    213
  • trunk/Source/WebKit/gtk/tests/test_utils.c

    r90994 r106877  
    3030        if (g_chdir(repoPath))
    3131            return -1;
    32     } else if (g_path_is_absolute(executablePath)) {
    33         if (g_chdir(g_path_get_dirname(executablePath)))
     32    } else if (g_chdir(g_path_get_dirname(executablePath)))
    3433            return -1;
    35     }
    3634
    3735    while (!g_file_test(targetFilename, G_FILE_TEST_EXISTS)) {
Note: See TracChangeset for help on using the changeset viewer.