pass w2016 and make test
authorStefan Metzmacher <metze@samba.org>
Tue, 12 Feb 2019 16:10:41 +0000 (17:10 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 15 Oct 2019 07:36:38 +0000 (09:36 +0200)
source4/torture/smb2/notify.c

index c8431aaefcdc7b4ba883f5848ec4f03c0a0ed170..4756ca587f937e52e91a3fb0e72b7b0c974d069c 100644 (file)
@@ -1079,7 +1079,7 @@ static bool torture_smb2_notify_mask(struct torture_context *torture,
                sinfo.basic_info.in.create_time = 0;
                torture_comment(torture, "Testing set file create time\n");
                NOTIFY_MASK_TEST("Testing set file create time",
-                       smb2_create_complex_file(torture, tree2,
+                       smb2_create_simple_file(torture, tree2,
                        BASEDIR_MSK "\\tname1", &h2);,
                        smb2_setinfo_file(tree2, &sinfo);,
                        (smb2_util_close(tree2, h2),
@@ -1094,7 +1094,7 @@ static bool torture_smb2_notify_mask(struct torture_context *torture,
        sinfo.basic_info.in.access_time = 0;
        torture_comment(torture, "Testing set file access time\n");
        NOTIFY_MASK_TEST("Testing set file access time",
-               smb2_create_complex_file(torture,
+               smb2_create_simple_file(torture,
                        tree2,
                        BASEDIR_MSK "\\tname1",
                        &h2);,
@@ -1110,7 +1110,7 @@ static bool torture_smb2_notify_mask(struct torture_context *torture,
        sinfo.basic_info.in.change_time = 0;
        torture_comment(torture, "Testing set file change time\n");
        NOTIFY_MASK_TEST("Testing set file change time",
-               smb2_create_complex_file(torture,
+               smb2_create_simple_file(torture,
                        tree2,
                        BASEDIR_MSK "\\tname1",
                        &h2);,
@@ -1123,7 +1123,7 @@ static bool torture_smb2_notify_mask(struct torture_context *torture,
 
        torture_comment(torture, "Testing write\n");
        NOTIFY_MASK_TEST("Testing write",
-               smb2_create_complex_file(torture,
+               smb2_create_simple_file(torture,
                        tree2,
                        BASEDIR_MSK "\\tname1",
                        &h2);,
@@ -2656,14 +2656,18 @@ struct torture_suite *torture_smb2_notify_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite = torture_suite_create(ctx, "notify");
 
+if (1) {
        torture_suite_add_1smb2_test(suite, "valid-req", test_valid_request);
-if (0) {
        torture_suite_add_1smb2_test(suite, "tcon", torture_smb2_notify_tcon);
        torture_suite_add_2smb2_test(suite, "dir", torture_smb2_notify_dir);
        torture_suite_add_2smb2_test(suite, "mask", torture_smb2_notify_mask);
        torture_suite_add_1smb2_test(suite, "tdis", torture_smb2_notify_tree_disconnect);
        torture_suite_add_1smb2_test(suite, "tdis1", torture_smb2_notify_tree_disconnect_1);
+}
+if (0) {
        torture_suite_add_2smb2_test(suite, "mask-change", torture_smb2_notify_mask_change);
+}
+if (1) {
        torture_suite_add_1smb2_test(suite, "close", torture_smb2_notify_close);
        torture_suite_add_1smb2_test(suite, "logoff", torture_smb2_notify_ulogoff);
        torture_suite_add_1smb2_test(suite, "session-reconnect", torture_smb2_notify_session_reconnect);