From 13ac77e545b5d7e8b5ecb053d0aaa321ce12e487 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sat, 5 Oct 2013 16:31:33 +0200 Subject: [PATCH] Add test for blanks in URL path --- test/test_solr.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/test_solr.c b/test/test_solr.c index 98d06e8..6ea884c 100644 --- 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); } -- 1.7.10.4