From 4157c704e5b89d5cba0cb39937c6d4c697f3b0b0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 20 May 2003 20:21:34 +0000 Subject: [PATCH] Further ODR tests --- odr/odr_util.c | 5 ++--- odr/tstodr.c | 25 ++++++++++++++++++++++++- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/odr/odr_util.c b/odr/odr_util.c index 26a672c..c8b35b8 100644 --- a/odr/odr_util.c +++ b/odr/odr_util.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: odr_util.c,v 1.23 2003-05-20 19:55:30 adam Exp $ + * $Id: odr_util.c,v 1.24 2003-05-20 20:21:34 adam Exp $ */ #if HAVE_CONFIG_H #include @@ -87,8 +87,7 @@ int odr_missing(ODR o, int opt, const char *name) return 0; if (!opt) { - printf ("odr_missing set error : %s\n", name); - odr_seterror(o, OREQUIRED, 55); + odr_seterror(o, OREQUIRED, 53); odr_setaddinfo(o, name); } return opt; diff --git a/odr/tstodr.c b/odr/tstodr.c index 4d681a1..11aa4c9 100644 --- a/odr/tstodr.c +++ b/odr/tstodr.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: tstodr.c,v 1.3 2003-05-20 19:55:30 adam Exp $ + * $Id: tstodr.c,v 1.4 2003-05-20 20:21:34 adam Exp $ * */ #include @@ -78,6 +78,28 @@ void tst_MySequence2(ODR encode, ODR decode) exit(13); } +void tst_MySequence3(ODR encode, ODR decode) +{ + char buf[40]; + int i; + Yc_MySequence *t; + + srand(123); + for (i = 0; i<1000; i++) + { + int j; + for (j = 0; j