summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:09 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:09 +0000
commit0a8a80e58374771acc225fe1e08ed8e0fe0016cc (patch)
treeafa40f2a73b369e2ba930e47c961992170a669b7 /test
parent93641593cafac296b9072288d8ef9e1a526d745b (diff)
Sync
Author: jgg Date: 1998-10-22 04:56:38 GMT Sync
Diffstat (limited to 'test')
-rw-r--r--test/scratch.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/scratch.cc b/test/scratch.cc
index 577ab5f9b..a8817bc41 100644
--- a/test/scratch.cc
+++ b/test/scratch.cc
@@ -1,9 +1,12 @@
#include <apt-pkg/acquire-item.h>
#include <apt-pkg/init.h>
#include <apt-pkg/error.h>
+#include <signal.h>
int main()
{
+ signal(SIGPIPE,SIG_IGN);
+
pkgInitialize(*_config);
pkgSourceList List;
@@ -17,6 +20,8 @@ int main()
if (_error->PendingError() == true)
break;
}
+
+ Fetcher.Run();
_error->DumpErrors();
}