r21124: Samba3 does not support create times correctly.
authorVolker Lendecke <vlendec@samba.org>
Fri, 2 Feb 2007 15:36:17 +0000 (15:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:44:30 +0000 (14:44 -0500)
Volker
(This used to be commit c9886ce63b8cc085e0032ad2f6193c547336856d)

source4/torture/raw/notify.c

index 966b32ce91fc30747cf260da967bcf072631249a..7e1f6016385e30947398b17f2052c089077a6ebe 100644 (file)
@@ -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(