From e07c9107593d131eeb0f57cfd908e0e01be37010 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 11 Aug 2005 14:19:28 +0000 Subject: [PATCH] Make test fail if circular refenced ODR does not fail --- test/tstodrstack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 1.7.10.4