summaryrefslogtreecommitdiff
path: root/test/libapt/extracttar_test.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-01-26 17:42:33 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2016-01-26 17:42:33 +0100
commitb7aa74a1859e3be00f3a20b0956d1cb93d62df5b (patch)
treef4fdf1cc1dc128d069056786b0f95fe72d80bbcf /test/libapt/extracttar_test.cc
parent2651f1c071927b7fc440ec7a638ecad7ccf04a2e (diff)
stablize gtest testcase environment
Avoid the dependency on a specific current path for the tar test and ensure that _system is correctly initialized (gcc-6 runs into a segfault otherwise and with it fixed starts to depend on the multi-arch configuration of the running system… not good). Git-Dch: Ignore
Diffstat (limited to 'test/libapt/extracttar_test.cc')
-rw-r--r--test/libapt/extracttar_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libapt/extracttar_test.cc b/test/libapt/extracttar_test.cc
index b4e1fd37f..0255bd767 100644
--- a/test/libapt/extracttar_test.cc
+++ b/test/libapt/extracttar_test.cc
@@ -20,7 +20,7 @@ class Stream : public pkgDirStream
TEST(ExtractTar, ExtractTar)
{
- EXPECT_EQ(system("tar c makefile | gzip > tar.tgz"), 0);
+ EXPECT_EQ(system("tar c /etc/passwd 2>/dev/null | gzip > tar.tgz"), 0);
FileFd fd("tar.tgz", FileFd::ReadOnly);
unlink("tar.tgz");