git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0633f1a
)
* updated test case to use modified il_msg
author
Michal Voců
<michal@ruk.cuni.cz>
Mon, 12 Sep 2005 14:40:01 +0000
(14:40 +0000)
committer
Michal Voců
<michal@ruk.cuni.cz>
Mon, 12 Sep 2005 14:40:01 +0000
(14:40 +0000)
org.glite.lb.common/test/il_msg_test.cpp
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.common/test/il_msg_test.cpp
b/org.glite.lb.common/test/il_msg_test.cpp
index
230b6f1
..
99c0311
100644
(file)
--- a/
org.glite.lb.common/test/il_msg_test.cpp
+++ b/
org.glite.lb.common/test/il_msg_test.cpp
@@
-67,7
+67,7
@@
public:
int l;
char *s;
- l = read_il_data(&s, test_reader);
+ l = read_il_data(
/*user data*/NULL,
&s, test_reader);
CPPUNIT_ASSERT_EQUAL(l, 18);
CPPUNIT_ASSERT(s != NULL);
CPPUNIT_ASSERT(!strcmp(s, "6 michal\n6 zprava\n"));
@@
-80,7
+80,7
@@
private:
static const char *msg, *rep;
static int pos;
- static int test_reader(char *buf, int len) {
+ static int test_reader(
void *user_data,
char *buf, int len) {
strncpy(buf, msg+pos, len);
pos += len;
return(len);