diff options
author | David Goulet <dgoulet@torproject.org> | 2018-02-07 10:23:24 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-02-07 10:50:52 -0500 |
commit | fe3dfe7e38b4ad0c11ff05b7dbd0a9b1d7efc4a8 (patch) | |
tree | cee5b8cbc89ec8b78c4f170990b071b8a767f2b7 /src | |
parent | a2aaf9509ba578f4e7705b506ee9a0f764d24ff2 (diff) | |
download | tor-fe3dfe7e38b4ad0c11ff05b7dbd0a9b1d7efc4a8.tar.gz tor-fe3dfe7e38b4ad0c11ff05b7dbd0a9b1d7efc4a8.zip |
test: Bump to 10 msec gap in the monotonic test
On slow system, 1 msec between one read and the other was too tight. For
instance, it failed on armel with a 4msec gap:
https://buildd.debian.org/status/package.php?p=tor&suite=experimental
Increase to 10 msec for now to address slow system. It is important that we
keep this OP_LE test in so we make sure the msec/usec/nsec read aren't
desynchronized by huge gaps. We'll adjust again if we ever encounter a system
that goes slower than 10 msec between calls.
Fixes #25113
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index 0b707caeeb..dd122b250d 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -5541,10 +5541,10 @@ test_util_monotonic_time(void *arg) tt_u64_op(usec1, OP_GE, nsec1 / 1000); tt_u64_op(msecc1, OP_GE, nsecc1 / 1000000); tt_u64_op(usecc1, OP_GE, nsecc1 / 1000); - tt_u64_op(msec1, OP_LE, nsec1 / 1000000 + 1); - tt_u64_op(usec1, OP_LE, nsec1 / 1000 + 1000); - tt_u64_op(msecc1, OP_LE, nsecc1 / 1000000 + 1); - tt_u64_op(usecc1, OP_LE, nsecc1 / 1000 + 1000); + tt_u64_op(msec1, OP_LE, nsec1 / 1000000 + 10); + tt_u64_op(usec1, OP_LE, nsec1 / 1000 + 10000); + tt_u64_op(msecc1, OP_LE, nsecc1 / 1000000 + 10); + tt_u64_op(usecc1, OP_LE, nsecc1 / 1000 + 10000); done: ; |