projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4aec24b
)
Add test for blanks in URL path
author
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 5 Oct 2013 14:31:33 +0000
(16:31 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 5 Oct 2013 14:31:33 +0000
(16:31 +0200)
test/test_solr.c
patch
|
blob
|
history
diff --git
a/test/test_solr.c
b/test/test_solr.c
index
98d06e8
..
6ea884c
100644
(file)
--- a/
test/test_solr.c
+++ b/
test/test_solr.c
@@
-348,6
+348,20
@@
void tst_yaz_700(void)
r = z_GDU(odr, &gdu_req, 0, 0);
YAZ_CHECK(r);
+ if (r)
+ {
+ int len;
+ char *buf = odr_getbuf(odr, &len, 0);
+ ODR decode = odr_createmem(ODR_DECODE);
+ YAZ_CHECK(buf);
+ if (buf)
+ {
+ odr_setbuf(decode, buf, len, 0);
+ r = z_GDU(decode, &gdu_req, 0, 0);
+ YAZ_CHECK(r);
+ }
+ odr_destroy(decode);
+ }
odr_destroy(odr);
}