diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-02-02 15:36:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:44:30 -0500 |
commit | 9df5d5e31fb962f2350459a5b0bddc94d6fab8d0 (patch) | |
tree | 705a77998ff6845987ace608d538abef61300637 /source4/torture | |
parent | 11c9a98dc21f3017241fd8a3c2062c462cf9ec08 (diff) | |
download | samba-9df5d5e31fb962f2350459a5b0bddc94d6fab8d0.tar.gz samba-9df5d5e31fb962f2350459a5b0bddc94d6fab8d0.tar.bz2 samba-9df5d5e31fb962f2350459a5b0bddc94d6fab8d0.zip |
r21124: Samba3 does not support create times correctly.
Volker
(This used to be commit c9886ce63b8cc085e0032ad2f6193c547336856d)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/raw/notify.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/source4/torture/raw/notify.c b/source4/torture/raw/notify.c index 966b32ce91..7e1f601638 100644 --- a/source4/torture/raw/notify.c +++ b/source4/torture/raw/notify.c @@ -541,13 +541,21 @@ static BOOL test_notify_mask(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) NOTIFY_ACTION_MODIFIED, FILE_NOTIFY_CHANGE_ATTRIBUTES, 1); - printf("testing set file create time\n"); - NOTIFY_MASK_TEST( - fnum2 = create_complex_file(cli, mem_ctx, BASEDIR "\\tname1");, - smbcli_fsetatr(cli->tree, fnum2, 0, t, 0, 0, 0);, - (smbcli_close(cli->tree, fnum2), smbcli_unlink(cli->tree, BASEDIR "\\tname1"));, - NOTIFY_ACTION_MODIFIED, - FILE_NOTIFY_CHANGE_CREATION, 1); + if (lp_parm_bool(-1, "torture", "samba3", False)) { + printf("Samba3 does not yet support create times " + "everywhere\n"); + } + else { + printf("testing set file create time\n"); + NOTIFY_MASK_TEST( + fnum2 = create_complex_file(cli, mem_ctx, + BASEDIR "\\tname1");, + smbcli_fsetatr(cli->tree, fnum2, 0, t, 0, 0, 0);, + (smbcli_close(cli->tree, fnum2), + smbcli_unlink(cli->tree, BASEDIR "\\tname1"));, + NOTIFY_ACTION_MODIFIED, + FILE_NOTIFY_CHANGE_CREATION, 1); + } printf("testing set file access time\n"); NOTIFY_MASK_TEST( |