Skip to content
Snippets Groups Projects
Commit e9a141bb authored by Daniel Salzman's avatar Daniel Salzman
Browse files

tests/journal: remove debug output

parent e94d92c3
No related merge requests found
/* Copyright (C) 2016 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> /* Copyright (C) 2017 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -676,12 +676,6 @@ static void test_stress_base(journal_t *j, size_t update_size, size_t file_size) ...@@ -676,12 +676,6 @@ static void test_stress_base(journal_t *j, size_t update_size, size_t file_size)
while (true) { while (true) {
changeset_set_soa_serials(&ch, serial, serial + 1, apex); changeset_set_soa_serials(&ch, serial, serial + 1, apex);
ret = journal_store_changeset(j, &ch); ret = journal_store_changeset(j, &ch);
if (ret != KNOT_EOK) {
fprintf(stderr, "store failed %d serial=%d (espace=%d ebusy=%d)\n",
ret, serial, KNOT_ESPACE, KNOT_EBUSY);
}
if (ret == KNOT_EOK) { if (ret == KNOT_EOK) {
serial++; serial++;
} else { } else {
...@@ -701,13 +695,13 @@ static void test_stress_base(journal_t *j, size_t update_size, size_t file_size) ...@@ -701,13 +695,13 @@ static void test_stress_base(journal_t *j, size_t update_size, size_t file_size)
/*! \brief Test behavior when writing to jurnal and flushing it. */ /*! \brief Test behavior when writing to jurnal and flushing it. */
static void test_stress(journal_t *j) static void test_stress(journal_t *j)
{ {
printf("stress test: small data\n"); diag("stress test: small data");
test_stress_base(j, 40, 1024 * 1024 / 2); test_stress_base(j, 40, 1024 * 1024 / 2);
printf("stress test: medium data\n"); diag("stress test: medium data");
test_stress_base(j, 400, 3 * 1024 * 1024); test_stress_base(j, 400, 3 * 1024 * 1024);
printf("stress test: large data\n"); diag("stress test: large data");
test_stress_base(j, 4000, 10 * 1024 * 1024); test_stress_base(j, 4000, 10 * 1024 * 1024);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment