#include #include #include #include #include "utils.h" int main(int argc, char** argv) { uint64_t i; mcl_handle** hdls; struct timespec start, end; int ret = 0; mcl_banner("NULL Request Test"); parse_global_opts(argc, argv); hdls = (mcl_handle**) malloc(rep * sizeof(mcl_handle*)); if(!hdls){ printf("Error allocating memory for MCL handles. Aborting."); goto err; } mcl_init(workers,0x0); printf("Synchronous Test..."); clock_gettime(CLOCK_MONOTONIC,&start); for(i=0; istatus != MCL_REQ_COMPLETED){ printf("Request %"PRIu64" status=%"PRIx64"\n.", i, hdls[i]->status); ret = 1; } for(i=0; istatus != MCL_REQ_COMPLETED){ printf("Request %"PRIu64" status=%"PRIx64"\n.", i, hdls[i]->status); ret = 1; } for(i=0; i