diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-04-10 20:18:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:11 -0500 |
commit | ac193579e7db00c7a2ea0aadaaf0d34c10dcf1a5 (patch) | |
tree | bcd9a0afdc2996df4a56479932b7d36d32c50f8d /source4/torture/torture_util.c | |
parent | 91b30df39bfaec8bfa32be40a13fd62008f66b9e (diff) | |
download | samba-ac193579e7db00c7a2ea0aadaaf0d34c10dcf1a5.tar.gz samba-ac193579e7db00c7a2ea0aadaaf0d34c10dcf1a5.tar.bz2 samba-ac193579e7db00c7a2ea0aadaaf0d34c10dcf1a5.zip |
r152: a quick airport commit ....
added ldbedit, a _really_ useful command
added ldbadd, ldbdel, ldbsearch and ldbmodify to build
solved lots of timezone issues, we now pass the torture tests with
client and server in different zones
fixed several build issues
I know this breaks the no-LDAP build. Wait till I arrive in San Jose for that
fix.
(This used to be commit af34710d4da1841653624fe304b1c8d812c0fdd9)
Diffstat (limited to 'source4/torture/torture_util.c')
-rw-r--r-- | source4/torture/torture_util.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/source4/torture/torture_util.c b/source4/torture/torture_util.c index 57add86602..96579999c3 100644 --- a/source4/torture/torture_util.c +++ b/source4/torture/torture_util.c @@ -114,13 +114,14 @@ int create_complex_file(struct cli_state *cli, TALLOC_CTX *mem_ctx, const char * printf("Failed to setup EAs\n"); } - /* make sure all the timestamps aren't the same */ + /* make sure all the timestamps aren't the same, and are also + in different DST zones*/ setfile.generic.level = RAW_SFILEINFO_SETATTRE; setfile.generic.file.fnum = fnum; - setfile.setattre.in.create_time = t + 60; - setfile.setattre.in.access_time = t + 120; - setfile.setattre.in.write_time = t + 180; + setfile.setattre.in.create_time = t + 9*30*24*60*60; + setfile.setattre.in.access_time = t + 6*30*24*60*60; + setfile.setattre.in.write_time = t + 3*30*24*60*60; status = smb_raw_setfileinfo(cli->tree, &setfile); if (!NT_STATUS_IS_OK(status)) { @@ -212,14 +213,6 @@ BOOL wire_bad_flags(WIRE_STRING *str, int flags) } /* - return a talloced string representing a time_t for human consumption -*/ -const char *time_string(TALLOC_CTX *mem_ctx, time_t t) -{ - return talloc_strdup(mem_ctx, http_timestring(mem_ctx, t)); -} - -/* check if 2 NTTIMEs are equal */ BOOL nt_time_equal(NTTIME *t1, NTTIME *t2) |