summaryrefslogtreecommitdiff
path: root/test/libapt
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-04-28 17:25:28 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-04-28 17:25:28 +0200
commit8e0002ac420707b94a8a43dfedea7fc182dd5851 (patch)
treeee125ad1dd03f56436fb733f13d4c36c1e3d2fa8 /test/libapt
parenta9d990a2602fca4f217705e356b449b0f42a7760 (diff)
parent53ac87ac9c27af39df062516aab5dce880af107a (diff)
Merge branch 'feature/abspath' into feature/apt-install-deb
Conflicts: test/libapt/fileutl_test.cc
Diffstat (limited to 'test/libapt')
-rw-r--r--test/libapt/fileutl_test.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/libapt/fileutl_test.cc b/test/libapt/fileutl_test.cc
index c2a43eda7..16ea6cf2b 100644
--- a/test/libapt/fileutl_test.cc
+++ b/test/libapt/fileutl_test.cc
@@ -224,7 +224,6 @@ TEST(FileUtlTest, GetTempDir)
if (old_tmpdir.empty() == false)
setenv("TMPDIR", old_tmpdir.c_str(), 1);
}
-
TEST(FileUtlTest, Popen)
{
FileFd Fd;
@@ -272,3 +271,10 @@ TEST(FileUtlTest, Popen)
Fd.Close();
ExecWait(Child, "PopenWrite");
}
+TEST(FileUtlTest, flAbsPath)
+{
+ int res = chdir("/bin/");
+ EXPECT_EQ(res, 0);
+ std::string p = flAbsPath("ls");
+ EXPECT_EQ(p, "/bin/ls");
+}