]> git.saurik.com Git - apt.git/commitdiff
fileutl_test.cc: Check for /etc/passwd instead of /bin/sh
authorJulian Andres Klode <jak@debian.org>
Mon, 10 Aug 2015 09:42:34 +0000 (11:42 +0200)
committerJulian Andres Klode <jak@debian.org>
Mon, 10 Aug 2015 09:43:23 +0000 (11:43 +0200)
This fixes the tests on systems where usrmerge is installed.

Gbp-dch: ignore

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);