X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstodrstack.c;fp=test%2Ftstodrstack.c;h=a1d6bc7864ec7c3fd5bf175d118d8f84ca51e8a8;hb=e07c9107593d131eeb0f57cfd908e0e01be37010;hp=06b724afca5dc39bd99ad862429a2bd2ef981e9d;hpb=64e2bb98a2ecd300fc2819c2cbb0b72901f85fa6;p=yaz-moved-to-github.git diff --git a/test/tstodrstack.c b/test/tstodrstack.c index 06b724a..a1d6bc7 100644 --- a/test/tstodrstack.c +++ b/test/tstodrstack.c @@ -43,11 +43,11 @@ void test2() if (!rpn_query) exit(1); - /* make a bad recursive refernce */ + /* make the circular reference */ rpn_query->RPNStructure->u.complex->s1 = rpn_query->RPNStructure; - if (!z_RPNQuery(odr, &rpn_query, 0, 0)) - odr_perror(odr, "Encoding query"); + if (z_RPNQuery(odr, &rpn_query, 0, 0)) /* should fail */ + exit(2); yaz_pqf_destroy(parser); odr_destroy(odr);