s4:torture:smb2: rename the durable-open.basic1 test to durable-open.open1 for clarity
authorMichael Adam <obnox@samba.org>
Mon, 31 Oct 2011 22:54:06 +0000 (23:54 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 1 Nov 2011 02:20:37 +0000 (03:20 +0100)
source4/torture/smb2/durable_open.c

index 33ce1e9cd391af2fdb16ffabddff983196ec24d2..6e62d4e36c62178ef7809b476f8441a85e99de36 100644 (file)
@@ -94,11 +94,11 @@ struct durable_open_vs_oplock durable_open_vs_oplock_table[NUM_OPLOCK_OPEN_TESTS
        { SMB2_OPLOCK_LEVEL_BATCH, true },
 };
 
-static bool test_one_durable_open_basic1(struct torture_context *tctx,
-                                        struct smb2_tree *tree,
-                                        const char *fname,
-                                        struct smb2_create io,
-                                        struct durable_open_vs_oplock test)
+static bool test_one_durable_open_open1(struct torture_context *tctx,
+                                       struct smb2_tree *tree,
+                                       const char *fname,
+                                       struct smb2_create io,
+                                       struct durable_open_vs_oplock test)
 {
        NTSTATUS status;
        TALLOC_CTX *mem_ctx = talloc_new(tctx);
@@ -128,8 +128,8 @@ done:
        return ret;
 }
 
-bool test_durable_open_basic1(struct torture_context *tctx,
-                             struct smb2_tree *tree)
+bool test_durable_open_open1(struct torture_context *tctx,
+                            struct smb2_tree *tree)
 {
        TALLOC_CTX *mem_ctx = talloc_new(tctx);
        struct smb2_create io;
@@ -138,7 +138,7 @@ bool test_durable_open_basic1(struct torture_context *tctx,
        int i;
 
        /* Choose a random name in case the state is left a little funky. */
-       snprintf(fname, 256, "durable_open_basic1_%s.dat", generate_random_str(tctx, 8));
+       snprintf(fname, 256, "durable_open_open1_%s.dat", generate_random_str(tctx, 8));
 
        smb2_util_unlink(tree, fname);
 
@@ -163,11 +163,11 @@ bool test_durable_open_basic1(struct torture_context *tctx,
        /* test various oplock levels with durable open */
 
        for (i = 0; i < NUM_OPLOCK_OPEN_TESTS; i++) {
-               ret = test_one_durable_open_basic1(tctx,
-                                                  tree,
-                                                  fname,
-                                                  io,
-                                                  durable_open_vs_oplock_table[i]);
+               ret = test_one_durable_open_open1(tctx,
+                                                 tree,
+                                                 fname,
+                                                 io,
+                                                 durable_open_vs_oplock_table[i]);
                if (ret == false) {
                        goto done;
                }
@@ -867,7 +867,7 @@ struct torture_suite *torture_smb2_durable_open_init(void)
        struct torture_suite *suite =
            torture_suite_create(talloc_autofree_context(), "durable-open");
 
-       torture_suite_add_1smb2_test(suite, "basic1", test_durable_open_basic1);
+       torture_suite_add_1smb2_test(suite, "open1", test_durable_open_open1);
        torture_suite_add_1smb2_test(suite, "basic2", test_durable_open_basic2);
        torture_suite_add_2smb2_test(suite, "file-position",
            test_durable_open_file_position);