summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-04-28 17:45:07 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-04-28 17:45:07 +0200
commit713ee8ad3f4d7be00d2fbacd979e78772f24a675 (patch)
treea9c062a0e74a4275b6cde3aafd0a591eed2e2a4b /test
parentfb11075f497e5a7afe5837ae84a350fff9f93dc5 (diff)
parenta111a024a30b805fc3f2b8a5b4db8d0c26c10fb8 (diff)
Merge branch 'feature/abspath' into feature/apt-install-deb
Diffstat (limited to 'test')
-rw-r--r--test/libapt/fileutl_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/libapt/fileutl_test.cc b/test/libapt/fileutl_test.cc
index 16ea6cf2b..cdf7ea479 100644
--- a/test/libapt/fileutl_test.cc
+++ b/test/libapt/fileutl_test.cc
@@ -273,8 +273,12 @@ TEST(FileUtlTest, Popen)
}
TEST(FileUtlTest, flAbsPath)
{
+ std::string cwd = SafeGetCWD();
int res = chdir("/bin/");
EXPECT_EQ(res, 0);
std::string p = flAbsPath("ls");
EXPECT_EQ(p, "/bin/ls");
+
+ res = chdir(cwd.c_str());
+ EXPECT_EQ(res, 0);
}