diff options
| author | Andreas Schneider <asn@samba.org> | 2013-11-12 14:09:55 +0100 |
|---|---|---|
| committer | David Disseldorp <ddiss@samba.org> | 2013-11-12 17:33:12 +0100 |
| commit | 4cf8f105005b1f9839be3d9de6d41b5f90bdb158 (patch) | |
| tree | dae63dd61d8026a204aecc6067035acb0393deff /source4/torture/raw | |
| parent | 654b784e9c9c3563afd1af853f4795117c258e56 (diff) | |
| download | samba-4cf8f105005b1f9839be3d9de6d41b5f90bdb158.tar.gz samba-4cf8f105005b1f9839be3d9de6d41b5f90bdb158.tar.xz samba-4cf8f105005b1f9839be3d9de6d41b5f90bdb158.zip | |
s4-torture: Relax time checking in CHECK_NTTIME.
NTTIME has a nanosecond resolution. We should be tolerate if the system
is busy writing and reading the value. To reproduce this problem just
run the test under valgrind.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source4/torture/raw')
| -rw-r--r-- | source4/torture/raw/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/raw/open.c b/source4/torture/raw/open.c index 0968cfec5b..0ec28c3650 100644 --- a/source4/torture/raw/open.c +++ b/source4/torture/raw/open.c @@ -112,7 +112,7 @@ static const char *rdwr_string(enum rdwr_mode m) status = smb_raw_pathinfo(cli->tree, tctx, &finfo); \ CHECK_STATUS(status, NT_STATUS_OK); \ t2 = finfo.all_info.out.field; \ - if (t != t2) { \ + if (abs(t-t2) > 20000) { \ torture_result(tctx, TORTURE_FAIL, \ "(%s) wrong time for field %s %s - %s\n", \ __location__, #field, \ |
