summaryrefslogtreecommitdiff
path: root/tests/linger.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-04-13 07:26:54 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-04-14 05:00:25 +0200
commit06329e07437f56260c2c74ba9e272bc6d484cc81 (patch)
treeb5a88aef4f00370d0bfc41b817f3429c4139a8ef /tests/linger.cpp
parentf34f71bbd5b9b00b295aa6438dd251845547225c (diff)
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 <sustrik@250bpm.com>
Diffstat (limited to 'tests/linger.cpp')
-rw-r--r--tests/linger.cpp4
1 files changed, 1 insertions, 3 deletions
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;
}