diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 19:30:46 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 19:30:46 +0000 |
commit | 95d050e357cd2f2a226621dd8639baaf30cad544 (patch) | |
tree | a44275da340d48f19a8898c80ac841800ec55141 /chrome/test/page_cycler/page_cycler_test.cc | |
parent | 697b87dd539e18cf21d5e65a7e55919f615e394c (diff) | |
download | chromium_src-95d050e357cd2f2a226621dd8639baaf30cad544.zip chromium_src-95d050e357cd2f2a226621dd8639baaf30cad544.tar.gz chromium_src-95d050e357cd2f2a226621dd8639baaf30cad544.tar.bz2 |
Hack to make tests work if out is a symlink: see if the current dir is the source root.
Fix some tests that were manually getting sourcedir from DIR_EXE instead of using DIR_SOURCE_ROOT.
BUG=none
TEST=rm -r out, ln -s /somedir/out out, run tests
Review URL: http://codereview.chromium.org/192064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/page_cycler/page_cycler_test.cc')
-rw-r--r-- | chrome/test/page_cycler/page_cycler_test.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/test/page_cycler/page_cycler_test.cc b/chrome/test/page_cycler/page_cycler_test.cc index b927807..06d61de 100644 --- a/chrome/test/page_cycler/page_cycler_test.cc +++ b/chrome/test/page_cycler/page_cycler_test.cc @@ -180,9 +180,7 @@ class PageCyclerTest : public UITest { // Make sure the test data is checked out FilePath test_path; - PathService::Get(base::DIR_EXE, &test_path); - test_path = test_path.DirName(); - test_path = test_path.DirName(); + PathService::Get(base::DIR_SOURCE_ROOT, &test_path); test_path = test_path.Append(FILE_PATH_LITERAL("data")); test_path = test_path.Append(FILE_PATH_LITERAL("page_cycler")); test_path = test_path.AppendASCII(name); |