summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGabriele Svelto <gabriele.svelto@gmail.com>2012-04-15 14:46:46 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-04-15 22:07:45 +0200
commit34ab0736ebf90068ef4856793f16a9030d3e0197 (patch)
tree28665fc2426ea2ec39a208a5e5f09a80efbe4f9e /tests
parentda8b8000bd2a84c04a3a9cd6ce57f9bc814595cf (diff)
Fixed a warning in the timeo test
Fixed a couple of mixed signed/unsigned comparison which in conjunction with -Werror prevented compilation of the test. Signed-off-by: Gabriele Svelto <gabriele.svelto@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/timeo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/timeo.cpp b/tests/timeo.cpp
index 2281556..bc73eec 100644
--- a/tests/timeo.cpp
+++ b/tests/timeo.cpp
@@ -66,7 +66,7 @@ int XS_TEST_MAIN ()
assert (rc == -1);
assert (xs_errno () == EAGAIN);
unsigned long elapsed = xs_stopwatch_stop (watch) / 1000;
- time_assert (elapsed, timeout);
+ time_assert (elapsed, (unsigned long) timeout);
// Check whether connection during the wait doesn't distort the timeout.
timeout = 2000;
@@ -79,7 +79,7 @@ int XS_TEST_MAIN ()
assert (rc == -1);
assert (xs_errno () == EAGAIN);
elapsed = xs_stopwatch_stop (watch) / 1000;
- time_assert (elapsed, timeout);
+ time_assert (elapsed, (unsigned long) timeout);
thread_join (thread);
// Check that timeouts don't break normal message transfer.