diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2003-01-16 11:39:42 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2003-01-16 11:39:42 +0000 |
commit | 3da23b13eff900f418f016da468b9a451694e909 (patch) | |
tree | ba6f8e64f209c117bf372cb43b7677dfeb66bc8c /test | |
parent | 8485f7a358c0df8c0932a293c7ca37f95bf50228 (diff) | |
download | libapr-3da23b13eff900f418f016da468b9a451694e909.tar.gz |
Fix the time vs apr_time_now comparison to really allow 1 second
of leeway.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64299 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/testtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testtime.c b/test/testtime.c index cb11bfd5a..5bb7ef8b5 100644 --- a/test/testtime.c +++ b/test/testtime.c @@ -103,7 +103,7 @@ static void test_now(CuTest *tc) * 1 second. */ CuAssert(tc, "apr_time and OS time do not agree", - (timediff > -1) && (timediff < 1)); + (timediff > -2) && (timediff < 2)); } static void test_gmtstr(CuTest *tc) |