]> git.saurik.com Git - apt.git/blobdiff - test/libapt/extracttar_test.cc
abort connection on '.' target replies in SRV
[apt.git] / test / libapt / extracttar_test.cc
index b4e1fd37fd25b1868c0af6ae1b8a202c40aa01bd..0255bd767643f61f9706f42f2d9a7d3590c3ead6 100644 (file)
@@ -20,7 +20,7 @@ class Stream : public pkgDirStream
 
 TEST(ExtractTar, ExtractTar)
 {
 
 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");
 
     FileFd fd("tar.tgz", FileFd::ReadOnly);
     unlink("tar.tgz");