X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_solr.c;h=9c30a5aa2d76f098ae702b260404a006221f4284;hp=98d06e8b490103605e4829986bc004e003d6b579;hb=6b3366d135740d9ab37bdcd3f00b115fedf30a9d;hpb=33d0d214a9219e190e15779b4e4f5e31fd7946be diff --git a/test/test_solr.c b/test/test_solr.c index 98d06e8..9c30a5a 100644 --- a/test/test_solr.c +++ b/test/test_solr.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ #if HAVE_CONFIG_H @@ -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); }