Преглед изворни кода

fileutl_test.cc: Check for /etc/passwd instead of /bin/sh

This fixes the tests on systems where usrmerge is installed.

Gbp-dch: ignore
Julian Andres Klode пре 11 година
родитељ
комит
20cf708a62
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      test/libapt/fileutl_test.cc

+ 3 - 3
test/libapt/fileutl_test.cc

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