[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #42390] fopen-fail fails on Debian GNU/Linux unstable

From: Manoj Srivastava
Subject: [bug #42390] fopen-fail fails on Debian GNU/Linux unstable
Date: Fri, 13 Jun 2014 21:21:54 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 Iceweasel/30.0

Follow-up Comment #3, bug #42390 (project make):

In the Debian BTS, Víctor M. Jáquez L. found the root cause:

>  The problem is, if I understand it correctly, the timeout value: 

> By default the test timeout (tests/test_driver.pl) is 5 seconds, but in
> particular test, the timeout is reached before hitting the "too many open
> files" error, which is the expected error. This is the case when the
> is not under a heavy load. I changed the variable $test_timeout from 5 to
> and I could build the package smoothly.

> # Timeout in seconds.  If the test takes longer than this we'll fail it.
> $test_timeout = 300;

Nased on that, I came up with the minimal patch that allows the build to
succeed, though I think that hard coding test specific behaviour int he driver
is sub optimal. The patch, though, does only reset the timeout for the one
single test that needs it. Ideally, there should be a mechanism to specfy a
per test timeout.

diff --git i/tests/test_driver.pl w/tests/test_driver.pl
index 2f83270..18d0379 100644
--- i/tests/test_driver.pl
+++ w/tests/test_driver.pl
@@ -419,7 +419,9 @@ sub run_all_tests
     $categories_run = 0;
+    my $save_timeout = $test_timeout;
     foreach $testname (sort @TESTS) {
+        local $test_timeout = $save_timeout;
         $suite_passed = 1;       # reset by test on failure
         $num_of_logfiles = 0;
         $num_of_tmpfiles = 0;
@@ -462,6 +464,7 @@ sub run_all_tests
         $tests_run = 0;
         $tests_passed = 0;
+       if ($testname =~ m{misc/fopen-fail}msx) { $test_timeout = 300; }
         # Run the test!
         $code = do $perl_testname;


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]