]> git.saurik.com Git - apt.git/blobdiff - test/libapt/fileutl_test.cc
fileutl_test.cc: Check for /etc/passwd instead of /bin/sh
[apt.git] / test / libapt / fileutl_test.cc
index a2c303768e4c6af042e3ea241610f0c52c844c73..b4226171696f29110dfd71ca231ab05d3065910f 100644 (file)
@@ -290,10 +290,10 @@ TEST(FileUtlTest, Popen)
 TEST(FileUtlTest, flAbsPath)
 {
    std::string cwd = SafeGetCWD();
-   int res = chdir("/bin/");
+   int res = chdir("/etc/");
    EXPECT_EQ(res, 0);
-   std::string p = flAbsPath("ls");
-   EXPECT_EQ(p, "/bin/ls");
+   std::string p = flAbsPath("passwd");
+   EXPECT_EQ(p, "/etc/passwd");
 
    res = chdir(cwd.c_str());
    EXPECT_EQ(res, 0);