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:
64e2bb9
)
Make test fail if circular refenced ODR does not fail
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 11 Aug 2005 14:19:28 +0000
(14:19 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 11 Aug 2005 14:19:28 +0000
(14:19 +0000)
test/tstodrstack.c
patch
|
blob
|
history
diff --git
a/test/tstodrstack.c
b/test/tstodrstack.c
index
06b724a
..
a1d6bc7
100644
(file)
--- 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);