Commit 3785e92d authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

[t:4319] Don't print so much stuff in newbrt/tests. {{{svn merge -c 38123...

[t:4319] Don't print so much stuff in newbrt/tests.  {{{svn merge -c 38123 ../tokudb.4319}}} Refs #4319.

git-svn-id: file:///svn/toku/tokudb@38124 c7de825b-a66e-492c-adef-691d508d4ae1
parent 5fc5922b
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "cachetable.h" #include "cachetable.h"
/* Test for #2755. The brtloader is using too much VM. */ /* Test for #2755. The brtloader is using too much VM. */
bool verbose=false;
static void test_cachetable_reservation (long size) { static void test_cachetable_reservation (long size) {
CACHETABLE ct; CACHETABLE ct;
...@@ -20,7 +21,7 @@ static void test_cachetable_reservation (long size) { ...@@ -20,7 +21,7 @@ static void test_cachetable_reservation (long size) {
uint64_t r1_bound = r0_bound/2; uint64_t r1_bound = r0_bound/2;
uint64_t r2 = toku_cachetable_reserve_memory(ct, 0.5); uint64_t r2 = toku_cachetable_reserve_memory(ct, 0.5);
uint64_t r2_bound = r1_bound/2; uint64_t r2_bound = r1_bound/2;
printf("%ld: r0=%ld r1=%ld r2=%ld\n", size, r0, r1, r2); if (verbose) printf("%10ld: r0=%10ld r1=%10ld r2=%10ld\n", size, r0, r1, r2);
assert(r0 <= r0_bound); assert(r0 <= r0_bound);
assert(r1 <= r1_bound); assert(r1 <= r1_bound);
assert(r2 <= r2_bound); assert(r2 <= r2_bound);
......
...@@ -78,7 +78,7 @@ pe_callback ( ...@@ -78,7 +78,7 @@ pe_callback (
) )
{ {
*bytes_freed = make_pair_attr(bytes_to_free.size-1); *bytes_freed = make_pair_attr(bytes_to_free.size-1);
printf("calling pe_callback\n"); if (verbose) printf("calling pe_callback\n");
expected_bytes_to_free--; expected_bytes_to_free--;
int* foo = brtnode_pv; int* foo = brtnode_pv;
int blah = *foo; int blah = *foo;
......
...@@ -225,7 +225,7 @@ static void *read_random_numbers(void *arg) { ...@@ -225,7 +225,7 @@ static void *read_random_numbers(void *arg) {
assert(r1 == 0); assert(r1 == 0);
} }
} }
printf("leaving\n"); if (verbose) printf("leaving\n");
return arg; return arg;
} }
......
...@@ -328,7 +328,7 @@ static void test_nested_pin (void) { ...@@ -328,7 +328,7 @@ static void test_nested_pin (void) {
int r; int r;
void *vv,*vv2; void *vv,*vv2;
char fname[] = __FILE__ "test_ct.dat"; char fname[] = __FILE__ "test_ct.dat";
printf("creating cachetable\n"); if (verbose) printf("creating cachetable\n");
r = toku_create_cachetable(&t, 1, ZERO_LSN, NULL_LOGGER); r = toku_create_cachetable(&t, 1, ZERO_LSN, NULL_LOGGER);
assert(r==0); assert(r==0);
unlink(fname); unlink(fname);
......
Markdown is supported
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