#ident "$Id$" #include "includes.h" #include "test.h" int verbose; static void test_fifo_create (void) { int r; FIFO f; f = 0; r = toku_fifo_create(&f); assert(r == 0); assert(f != 0); toku_fifo_free(&f); assert(f == 0); } static void test_fifo_enq (int n) { int r; FIFO f; MSN startmsn = ZERO_MSN; f = 0; r = toku_fifo_create(&f); assert(r == 0); assert(f != 0); char *thekey = 0; int thekeylen; char *theval = 0; int thevallen; // this was a function but icc cant handle it #define buildkey(len) { \ thekeylen = len; \ thekey = toku_realloc(thekey, thekeylen); \ memset(thekey, len, thekeylen); \ } #define buildval(len) { \ thevallen = len+1; \ theval = toku_realloc(theval, thevallen); \ memset(theval, ~len, thevallen); \ } for (int i=0; i