From 9df5d5e31fb962f2350459a5b0bddc94d6fab8d0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 2 Feb 2007 15:36:17 +0000 Subject: r21124: Samba3 does not support create times correctly. Volker (This used to be commit c9886ce63b8cc085e0032ad2f6193c547336856d) --- source4/torture/raw/notify.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'source4/torture/raw/notify.c') 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( -- cgit