Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
87bca627
Commit
87bca627
authored
Aug 28, 2006
by
Browse files
fix in test mapi loop
git-svn-id:
file:///home/svn/mapi/trunk@827
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
d82a29f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_loop.c
View file @
87bca627
...
...
@@ -36,6 +36,7 @@ printf("in callback\n");
printf
(
"
\n
"
);
}
counter
++
;
usleep
(
20
);
return
;
}
...
...
@@ -75,7 +76,7 @@ DOT;
}
DOT
;
if
(
mapi_loop
(
fd
,
bufid
,
5
0
,
&
callback
)
<
0
){
if
(
mapi_loop
(
fd
,
bufid
,
2
0
,
&
callback
)
<
0
){
fprintf
(
stderr
,
"Could not apply mapi_loop to flow %d
\n
"
,
fd
);
mapi_read_error
(
&
err_no
,
error
);
fprintf
(
stderr
,
"Erorcode :%d description: %s
\n
"
,
err_no
,
error
);
...
...
@@ -84,7 +85,7 @@ DOT;
/*
*Sanity check
*/
if
(
counter
!=
5
0
)
if
(
counter
!=
2
0
)
fprintf
(
stderr
,
"WARNING: mapi_loop called less times than excpected %d
\n
"
,
counter
);
else
printf
(
"
\n
mapi_loop OK
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment