The invoked sleep is 10 seconds, so reducing the timeout to 1 second should be safe, as this is all time bounded. This also speeds up the test suite.
@@ -116,6 +116,7 @@ dpkg (1.18.0) UNRELEASED; urgency=low
- Add test cases for Dpkg::Conf and Dpkg::Checksums.
- Handle libtool executables in progname unit test.
- Do not use a timeout when testing cat I/O, speeds up test suite by 5s.
+ - Reduce timeout test from 5 seconds to 1, to speed up test suite by 4s.
* Build system:
- Bump gettext version to 0.19:
+ Use --add-location=file in msgmerge and xgettext commands.
@@ -76,6 +76,6 @@ is($string2, $string1, '{from,to}_file');
eval {
$pid = spawn(exec => ['sleep', '10'],
wait_child => 1,
- timeout => 5);
+ timeout => 1);
};
ok($@, 'fails on timeout');