diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-04-11 21:37:23 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-04-11 21:49:02 +0200 |
commit | 1fd6d9cd661692e6b0ac950127a0d5b80945bfad (patch) | |
tree | 1be09d42676175a61935964e2f64154e30fdddc1 /source4 | |
parent | b65c8d05059466f8e8b2196c99469105afd128e8 (diff) | |
download | samba-1fd6d9cd661692e6b0ac950127a0d5b80945bfad.tar.gz samba-1fd6d9cd661692e6b0ac950127a0d5b80945bfad.tar.bz2 samba-1fd6d9cd661692e6b0ac950127a0d5b80945bfad.zip |
s4:dbspeed torture - remove unneeded newlines on "torture_result"
According to Jelmer's post on the technical list.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/local/dbspeed.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/torture/local/dbspeed.c b/source4/torture/local/dbspeed.c index 77e0174a31..e6a965a37e 100644 --- a/source4/torture/local/dbspeed.c +++ b/source4/torture/local/dbspeed.c @@ -188,11 +188,11 @@ static bool test_ldb_speed(struct torture_context *torture, const void *_data) /* add an index */ ldif = ldb_ldif_read_string(ldb, &init_ldif); if (ldif == NULL) { - torture_result(torture, TORTURE_FAIL, "Didn't get LDIF data!\n"); + torture_result(torture, TORTURE_FAIL, "Didn't get LDIF data!"); goto failed; } if (ldb_add(ldb, ldif->msg) != LDB_SUCCESS) { - torture_result(torture, TORTURE_FAIL, "Couldn't apply LDIF data!\n"); + torture_result(torture, TORTURE_FAIL, "Couldn't apply LDIF data!"); talloc_free(ldif); goto failed; } @@ -202,13 +202,13 @@ static bool test_ldb_speed(struct torture_context *torture, const void *_data) for (i=0;i<torture_entries;i++) { if (!ldb_add_record(ldb, i)) { - torture_result(torture, TORTURE_FAIL, "Failed to add SID %d\n", i); + torture_result(torture, TORTURE_FAIL, "Failed to add SID %d", i); goto failed; } } if (talloc_total_blocks(tmp_ctx) > 100) { - torture_result(torture, TORTURE_FAIL, "memory leak in ldb add\n"); + torture_result(torture, TORTURE_FAIL, "memory leak in ldb add"); goto failed; } @@ -223,20 +223,20 @@ static bool test_ldb_speed(struct torture_context *torture, const void *_data) i = random() % torture_entries; dn = ldb_dn_new_fmt(tmp_ctx, ldb, "SID=S-1-5-21-53173311-3623041448-2049097239-%u", i); if (ldb_search(ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE, NULL, NULL) != LDB_SUCCESS || res->count != 1) { - torture_result(torture, TORTURE_FAIL, "Failed to find SID %d!\n", i); + torture_result(torture, TORTURE_FAIL, "Failed to find SID %d!", i); goto failed; } talloc_free(res); talloc_free(dn); if (ldb_search(ldb, tmp_ctx, &res, NULL, LDB_SCOPE_SUBTREE, NULL, "(UID=%u)", i) != LDB_SUCCESS || res->count != 1) { - torture_result(torture, TORTURE_FAIL, "Failed to find UID %d!\n", i); + torture_result(torture, TORTURE_FAIL, "Failed to find UID %d!", i); goto failed; } talloc_free(res); } if (talloc_total_blocks(tmp_ctx) > 100) { - torture_result(torture, TORTURE_FAIL, "memory leak in ldb search\n"); + torture_result(torture, TORTURE_FAIL, "memory leak in ldb search"); goto failed; } |