aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest-options_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/gtest-options_test.cc')
-rw-r--r--test/gtest-options_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gtest-options_test.cc b/test/gtest-options_test.cc
index d49efe49..43c6d22d 100644
--- a/test/gtest-options_test.cc
+++ b/test/gtest-options_test.cc
@@ -150,14 +150,14 @@ class XmlOutputChangeDirTest : public Test {
protected:
virtual void SetUp() {
original_working_dir_ = FilePath::GetCurrentDir();
- posix::chdir("..");
+ posix::ChDir("..");
// This will make the test fail if run from the root directory.
EXPECT_STRNE(original_working_dir_.c_str(),
FilePath::GetCurrentDir().c_str());
}
virtual void TearDown() {
- posix::chdir(original_working_dir_.c_str());
+ posix::ChDir(original_working_dir_.c_str());
}
FilePath original_working_dir_;