summaryrefslogtreecommitdiff
path: root/test/libapt/fileutl_test.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-08-10 11:42:34 +0200
committerJulian Andres Klode <jak@debian.org>2015-08-10 11:43:23 +0200
commit20cf708a62df5e4aa45a506819db425c6cc975fe (patch)
tree2bb92d4b05b2b4ac4ccf5f7daeb23476fa177ec5 /test/libapt/fileutl_test.cc
parentb44c21bd31eb1b150bef21431ca881b1ab497559 (diff)
fileutl_test.cc: Check for /etc/passwd instead of /bin/sh
This fixes the tests on systems where usrmerge is installed. Gbp-dch: ignore
Diffstat (limited to 'test/libapt/fileutl_test.cc')
-rw-r--r--test/libapt/fileutl_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libapt/fileutl_test.cc b/test/libapt/fileutl_test.cc
index a2c303768..b42261716 100644
--- a/test/libapt/fileutl_test.cc
+++ b/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);