Procházet zdrojové kódy

Merge branch 'feature/abspath' into feature/apt-install-deb

Michael Vogt před 12 roky
rodič
revize
713ee8ad3f
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      test/libapt/fileutl_test.cc

+ 4 - 0
test/libapt/fileutl_test.cc

@@ -273,8 +273,12 @@ TEST(FileUtlTest, Popen)
 }
 TEST(FileUtlTest, flAbsPath)
 {
+   std::string cwd = SafeGetCWD();
    int res = chdir("/bin/");
    EXPECT_EQ(res, 0);
    std::string p = flAbsPath("ls");
    EXPECT_EQ(p, "/bin/ls");
+
+   res = chdir(cwd.c_str());
+   EXPECT_EQ(res, 0);
 }