]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:ldb:tests: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Mon, 3 Apr 2023 08:21:21 +0000 (10:21 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 4 Apr 2023 08:30:28 +0000 (08:30 +0000)
Best reviewed with: `git show --word-diff`.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Apr  4 08:30:28 UTC 2023 on atb-devel-224

lib/ldb/tests/ldb_filter_attrs_test.c
lib/ldb/tests/ldb_kv_ops_test.c
lib/ldb/tests/ldb_lmdb_free_list_test.c
lib/ldb/tests/ldb_mod_op_test.c
lib/ldb/tests/python/api.py
lib/ldb/tests/test.ldif
lib/ldb/tests/test_ldb_dn.c

index 9e985e13c6368e9be9191ba3550c3839903a66f6..fe3b96243df0aae5b0fb2e96a52489292ebb5a51 100644 (file)
@@ -52,7 +52,7 @@ struct ldbtest_ctx {
  *
  * This test checks the current behaviour of the function, however
  * this is not in a public ABI and many of the tested behaviours are
- * not ideal.  If the behaviour is deliberatly improved, this test
+ * not ideal.  If the behaviour is deliberately improved, this test
  * should be updated without worry to the new better behaviour.
  *
  * In particular the test is particularly to ensure the current
@@ -198,7 +198,7 @@ static void test_filter_attrs_two_attr_matched_attrs(void **state)
 
        struct ldb_message *filtered_msg = ldb_msg_new(ctx);
 
-       /* deliberatly the other order */
+       /* deliberately the other order */
        const char *attrs[] = {"bar", "foo", NULL};
 
        uint8_t value1[] = "The value.......end";
@@ -273,7 +273,7 @@ static void test_filter_attrs_two_attr_matched_one_attr(void **state)
 
        struct ldb_message *filtered_msg = ldb_msg_new(ctx);
 
-       /* deliberatly the other order */
+       /* deliberately the other order */
        const char *attrs[] = {"bar", NULL};
 
        uint8_t value1[] = "The value.......end";
@@ -342,7 +342,7 @@ static void test_filter_attrs_two_dup_attr_matched_one_attr(void **state)
 
        struct ldb_message *filtered_msg = ldb_msg_new(ctx);
 
-       /* deliberatly the other order */
+       /* deliberately the other order */
        const char *attrs[] = {"bar", NULL};
 
        uint8_t value1[] = "The value.......end";
@@ -739,7 +739,7 @@ static void test_filter_attrs_two_attr_matched_star(void **state)
 /*
  * Test against a record with only one attribute, matching the * in
  * the list, but without the DN being pre-filled.  Fails due to need
- * to contstruct the distinguishedName
+ * to construct the distinguishedName
  */
 static void test_filter_attrs_one_attr_matched_star_no_dn(void **state)
 {
index 9db2212895fb523b40878af4ed6158160760e4fd..b84ed0c146f9ca39364b695c2e5a6351a141e92a 100644 (file)
@@ -37,9 +37,9 @@
  * A KV module is expected to have the following behaviour
  *
  * - A transaction must be open to perform any read, write or delete operation
- * - Writes and Deletes should not be visible until a transaction is commited
+ * - Writes and Deletes should not be visible until a transaction is committed
  * - Nested transactions are not permitted
- * - transactions can be rolled back and commited.
+ * - transactions can be rolled back and committed.
  * - supports iteration over all records in the database
  * - supports the update_in_iterate operation allowing entries to be
  *   re-keyed.
@@ -1075,7 +1075,7 @@ static void test_write_transaction_isolation(void **state)
        const char *VAL2 = "VALUE02";
 
        /*
-        * Pipes etc to co-ordinate the processes
+        * Pipes etc to coordinate the processes
         */
        int to_child[2];
        int to_parent[2];
@@ -1222,7 +1222,7 @@ static void test_write_transaction_isolation(void **state)
                }
 
                /*
-                * Wait for the transaction to be commited
+                * Wait for the transaction to be committed
                 */
                ret = read(to_child[0], buf, 2);
                if (ret != 2) {
@@ -1392,7 +1392,7 @@ static void test_delete_transaction_isolation(void **state)
        const char *VAL2 = "VALUE02";
 
        /*
-        * Pipes etc to co-ordinate the processes
+        * Pipes etc to coordinate the processes
         */
        int to_child[2];
        int to_parent[2];
@@ -1550,7 +1550,7 @@ static void test_delete_transaction_isolation(void **state)
                }
 
                /*
-                * Wait for the transaction to be commited
+                * Wait for the transaction to be committed
                 */
                ret = read(to_child[0], buf, 2);
                if (ret != 2) {
index c87620e7a8754a97c0275795d348e6eae26a621e..246fdc71e6b713291f327f39c519372fcb880332 100644 (file)
@@ -224,7 +224,7 @@ static void test_free_list_no_read_lock(void **state)
        const char *KEY1 = "KEY01";
 
        /*
-        * Pipes etc to co-ordinate the processes
+        * Pipes etc to coordinate the processes
         */
        int to_child[2];
        int to_parent[2];
@@ -367,7 +367,7 @@ static void test_free_list_read_lock(void **state)
        const char *KEY1 = "KEY01";
 
        /*
-        * Pipes etc to co-ordinate the processes
+        * Pipes etc to coordinate the processes
         */
        int to_child[2];
        int to_parent[2];
@@ -516,7 +516,7 @@ static void test_free_list_stale_reader(void **state)
        const char *KEY1 = "KEY01";
 
        /*
-        * Pipes etc to co-ordinate the processes
+        * Pipes etc to coordinate the processes
         */
        int to_child[2];
        int to_parent[2];
index eca59068c9f2ce5f146ea1f4dd04b1fa6b73f452..6b49be55d6108db18316144d2975ef5562432f8b 100644 (file)
@@ -2599,7 +2599,7 @@ static int test_ldb_callback_modify_during_search_callback1(struct ldb_request *
        msg = ldb_msg_new(tmp_ctx);
        assert_non_null(msg);
 
-       /* We deliberatly use ou= not cn= here */
+       /* We deliberately use ou= not cn= here */
        msg->dn = ldb_dn_new_fmt(msg,
                                 ctx->test_ctx->ldb,
                                 "ou=test_search_cn_extra,%s",
index 75abd0e3acce4fab53dfb08f74a80ece42da6921..6c9ee559e212b95d9a918bbb068967e564dd2ed2 100755 (executable)
@@ -2110,7 +2110,7 @@ class AddModifyTests(LdbBaseTest):
                         "name": b"Admins",
                         "x": "z", "y": "a",
                         "objectUUID": b"0123456789abcde2"})
-            self.fail("Should have failed adding dupliate entry")
+            self.fail("Should have failed adding duplicate entry")
         except ldb.LdbError as err:
             enum = err.args[0]
             self.assertEqual(enum, ldb.ERR_ENTRY_ALREADY_EXISTS)
@@ -2304,7 +2304,7 @@ class IndexedAddModifyTests(AddModifyTests):
                         "name": b"Admins",
                         "x": "z", "y": "a",
                         "objectUUID": b"0123456789abcdef"})
-            self.fail("Should have failed adding dupliate GUID")
+            self.fail("Should have failed adding duplicate GUID")
         except ldb.LdbError as err:
             enum = err.args[0]
             self.assertEqual(enum, ldb.ERR_CONSTRAINT_VIOLATION)
@@ -2319,7 +2319,7 @@ class IndexedAddModifyTests(AddModifyTests):
                         "name": b"Admins",
                         "x": "z", "y": "a",
                         "objectUUID": b"a123456789abcdef"})
-            self.fail("Should have failed adding dupliate GUID")
+            self.fail("Should have failed adding duplicate GUID")
         except ldb.LdbError as err:
             enum = err.args[0]
             self.assertEqual(enum, ldb.ERR_ENTRY_ALREADY_EXISTS)
@@ -2334,7 +2334,7 @@ class IndexedAddModifyTests(AddModifyTests):
                         "name": b"Admins",
                         "x": "z", "y": "a",
                         "objectUUID": b"aaa3456789abcdef"})
-            self.fail("Should have failed adding dupliate DN")
+            self.fail("Should have failed adding duplicate DN")
         except ldb.LdbError as err:
             enum = err.args[0]
             self.assertEqual(enum, ldb.ERR_ENTRY_ALREADY_EXISTS)
index c6189bf431cb06de2f5b83d1e1194d71670b9982..b3f0eed3aaa312c4fd7cd4fc8574a06e98bbb7ca 100644 (file)
@@ -412,7 +412,7 @@ seealso: cn=All Staff,ou=Groups,o=University of Michigan,c=TEST
 homepostaladdress: 123 Anystreet $ Ann Arbor, MI 48104
 mail: uham@mail.alumni.example.com
 description: a long attribute name, longer than 128 bytes so that we
- trigger sign extension problems in tdb_pack, no thats not long enough
+ trigger sign extension problems in tdb_pack, no that's not long enough
  yet, maybe this is. I'll just keep going till it triggers the error
 homephone: +1 313 555 8421
 pager: +1 313 555 2844
index d863e84766b276d571b0f03b85967ba59b9934bf..6bf621a1d450c925b9aefea8fd4fed75da897aa4 100644 (file)
@@ -136,7 +136,7 @@ static int extended_dn_read_ID(struct ldb_context *ldb, void *mem_ctx,
        return 0;
 }
 
-/* write out (resued for both HEX and clear for now) */
+/* write out (reused for both HEX and clear for now) */
 static int extended_dn_write_ID(struct ldb_context *ldb, void *mem_ctx,
                                 const struct ldb_val *in, struct ldb_val *out)
 {