diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-03-03 20:47:44 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-03-03 20:47:44 +0000 |
commit | 7e9553c168e2c8cedfd1ce79baa2c5181befb2af (patch) | |
tree | 97952fbb5f78493fb3ac9dc2aab9be09d95b679a | |
parent | a59893fc4b74e25448f54676fac27c3896f490fa (diff) | |
download | samba-7e9553c168e2c8cedfd1ce79baa2c5181befb2af.tar.gz samba-7e9553c168e2c8cedfd1ce79baa2c5181befb2af.tar.bz2 samba-7e9553c168e2c8cedfd1ce79baa2c5181befb2af.zip |
handle clock skew in getatr test
(This used to be commit 64c0a5c4a0d879ce8f9517717a0cd54a75c20619)
-rw-r--r-- | source3/torture/torture.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index f51556eb25..5300bfd274 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -1804,7 +1804,7 @@ static BOOL run_attrtest(int dummy) correct = False; } - if (abs(t - time(NULL)) > 2) { + if (abs(t - time(NULL)) > 60*60*24*10) { printf("ERROR: SMBgetatr bug. time is %s", ctime(&t)); t = time(NULL); @@ -2867,7 +2867,7 @@ static BOOL run_dirtest(int dummy) srandom(0); for (i=0;i<numops;i++) { fstring fname; - slprintf(fname, sizeof(fname), "%x", (int)random()); + slprintf(fname, sizeof(fname), "\\%x", (int)random()); fnum = cli_open(&cli, fname, O_RDWR|O_CREAT, DENY_NONE); if (fnum == -1) { fprintf(stderr,"Failed to open %s\n", fname); @@ -2887,7 +2887,7 @@ static BOOL run_dirtest(int dummy) srandom(0); for (i=0;i<numops;i++) { fstring fname; - slprintf(fname, sizeof(fname), "%x", (int)random()); + slprintf(fname, sizeof(fname), "\\%x", (int)random()); cli_unlink(&cli, fname); } |