int main(int argc, char* argv[]) { int result = EXIT_FAILURE; itzam_set_default_error_handler(error_handler); init_test_prng(314159); #if defined(ITZAM_SHMEM_ENABLE) if (test_threaded()) result = EXIT_SUCCESS; #else printf("\nItzam does not support multiple threads when shared memory is disabled.\n#define ITZAM_SHMEM_ENABLE in itzam.h when compiling to enable shared memory.\n\n"); #endif return result; }
int main(int argc, char* argv[]) { int result = EXIT_FAILURE; int testn = 50; int32_t seed = (int32_t)time(NULL); printf("seed = %d\n",seed); init_test_prng(seed); itzam_set_default_error_handler(error_handler); if (argc > 1) testn = atoi(argv[1]); if (test_btree_cursor(testn)) result = EXIT_SUCCESS; return result; }