From: Andreas Schneider Date: Mon, 3 Apr 2023 08:21:21 +0000 (+0200) Subject: lib:ldb:tests: Fix code spelling X-Git-Tag: talloc-2.4.1~1124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=925b026a2351bead78b622d026429a45809475a3;p=thirdparty%2Fsamba.git lib:ldb:tests: Fix code spelling Best reviewed with: `git show --word-diff`. Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Tue Apr 4 08:30:28 UTC 2023 on atb-devel-224 --- diff --git a/lib/ldb/tests/ldb_filter_attrs_test.c b/lib/ldb/tests/ldb_filter_attrs_test.c index 9e985e13c63..fe3b96243df 100644 --- a/lib/ldb/tests/ldb_filter_attrs_test.c +++ b/lib/ldb/tests/ldb_filter_attrs_test.c @@ -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) { diff --git a/lib/ldb/tests/ldb_kv_ops_test.c b/lib/ldb/tests/ldb_kv_ops_test.c index 9db2212895f..b84ed0c146f 100644 --- a/lib/ldb/tests/ldb_kv_ops_test.c +++ b/lib/ldb/tests/ldb_kv_ops_test.c @@ -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) { diff --git a/lib/ldb/tests/ldb_lmdb_free_list_test.c b/lib/ldb/tests/ldb_lmdb_free_list_test.c index c87620e7a87..246fdc71e6b 100644 --- a/lib/ldb/tests/ldb_lmdb_free_list_test.c +++ b/lib/ldb/tests/ldb_lmdb_free_list_test.c @@ -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]; diff --git a/lib/ldb/tests/ldb_mod_op_test.c b/lib/ldb/tests/ldb_mod_op_test.c index eca59068c9f..6b49be55d61 100644 --- a/lib/ldb/tests/ldb_mod_op_test.c +++ b/lib/ldb/tests/ldb_mod_op_test.c @@ -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", diff --git a/lib/ldb/tests/python/api.py b/lib/ldb/tests/python/api.py index 75abd0e3acc..6c9ee559e21 100755 --- a/lib/ldb/tests/python/api.py +++ b/lib/ldb/tests/python/api.py @@ -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) diff --git a/lib/ldb/tests/test.ldif b/lib/ldb/tests/test.ldif index c6189bf431c..b3f0eed3aaa 100644 --- a/lib/ldb/tests/test.ldif +++ b/lib/ldb/tests/test.ldif @@ -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 diff --git a/lib/ldb/tests/test_ldb_dn.c b/lib/ldb/tests/test_ldb_dn.c index d863e84766b..6bf621a1d45 100644 --- a/lib/ldb/tests/test_ldb_dn.c +++ b/lib/ldb/tests/test_ldb_dn.c @@ -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) {