Commit 87bca627 authored by 's avatar
Browse files

fix in test mapi loop


git-svn-id: file:///home/svn/mapi/trunk@827 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent d82a29f3
...@@ -36,6 +36,7 @@ printf("in callback\n"); ...@@ -36,6 +36,7 @@ printf("in callback\n");
printf("\n"); printf("\n");
} }
counter++; counter++;
usleep(20);
return; return;
} }
...@@ -75,7 +76,7 @@ DOT; ...@@ -75,7 +76,7 @@ DOT;
} }
DOT; DOT;
if(mapi_loop(fd, bufid, 50, &callback) <0){ if(mapi_loop(fd, bufid, 20, &callback) <0){
fprintf(stderr, "Could not apply mapi_loop to flow %d\n", fd); fprintf(stderr, "Could not apply mapi_loop to flow %d\n", fd);
mapi_read_error( &err_no, error); mapi_read_error( &err_no, error);
fprintf(stderr,"Erorcode :%d description: %s \n" ,err_no, error); fprintf(stderr,"Erorcode :%d description: %s \n" ,err_no, error);
...@@ -84,7 +85,7 @@ DOT; ...@@ -84,7 +85,7 @@ DOT;
/* /*
*Sanity check *Sanity check
*/ */
if(counter!=50) if(counter!=20)
fprintf(stderr, "WARNING: mapi_loop called less times than excpected %d\n" , counter); fprintf(stderr, "WARNING: mapi_loop called less times than excpected %d\n" , counter);
else else
printf("\nmapi_loop OK\n"); printf("\nmapi_loop OK\n");
......
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