projects
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53ac87a
)
fix tests
author
Michael Vogt
<mvo@ubuntu.com>
Mon, 28 Apr 2014 15:44:34 +0000
(17:44 +0200)
committer
Michael Vogt
<mvo@ubuntu.com>
Mon, 28 Apr 2014 15:44:34 +0000
(17:44 +0200)
test/libapt/fileutl_test.cc
patch
|
blob
|
blame
|
history
diff --git
a/test/libapt/fileutl_test.cc
b/test/libapt/fileutl_test.cc
index 9c7e1630a3d22d8f8d1decceb58fdccb01acf390..15b57983beaef51b79560eb2ea5d387c4e4b3c68 100644
(file)
--- a/
test/libapt/fileutl_test.cc
+++ b/
test/libapt/fileutl_test.cc
@@
-226,8
+226,12
@@
TEST(FileUtlTest, GetTempDir)
}
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);
}