summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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");
+}