From 06329e07437f56260c2c74ba9e272bc6d484cc81 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 13 Apr 2012 07:26:54 +0200 Subject: Checking for correct timeout in the test suite improved This patch introduces 1/2 second tolerance for the timeouts in the tests. This will hopefully make tests not fail even on slow or heavily loaded machines. Signed-off-by: Martin Sustrik --- tests/linger.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/linger.cpp') diff --git a/tests/linger.cpp b/tests/linger.cpp index 42dfda0..fec0f72 100644 --- a/tests/linger.cpp +++ b/tests/linger.cpp @@ -52,9 +52,7 @@ int XS_TEST_MAIN () rc = xs_term (ctx); assert (rc == 0); int ms = (int) xs_stopwatch_stop (watch) / 1000; -#if !defined _WIN32 || !defined _DEBUG - assert (ms > 50 && ms < 150); -#endif + time_assert (ms, linger); return 0; } -- cgit v1.2.3