Browse Source

scripts/t: Reduce timeout from 5 to 1 in test case

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.
Guillem Jover 9 years ago
parent
commit
32655cdb3a
2 changed files with 2 additions and 1 deletions
  1. 1 0
      debian/changelog
  2. 1 1
      scripts/t/Dpkg_IPC.t

+ 1 - 0
debian/changelog

@@ -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.

+ 1 - 1
scripts/t/Dpkg_IPC.t

@@ -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');