X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Ftest_strmap.c;h=bd3e21c359719bbe5b1ebc7ef0634fd92486c9de;hb=efeec04ee7f36cd14b8d8136734af4b28860ffb8;hp=422c1a31aafe0136e865fbafe8eb6985c72dea94;hpb=08d6561cdd2bb03f02913f25b20a428aa9aea575;p=idzebra-moved-to-github.git diff --git a/util/test_strmap.c b/util/test_strmap.c index 422c1a3..bd3e21c 100644 --- a/util/test_strmap.c +++ b/util/test_strmap.c @@ -1,4 +1,4 @@ -/* $Id: test_strmap.c,v 1.2 2007-12-03 09:12:38 adam Exp $ +/* $Id: test_strmap.c,v 1.3 2007-12-03 17:09:01 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -94,6 +94,7 @@ static void test2(int no_iter) } } { + int failed = 0; int i; srand(12); for (i = 0; i < no_iter; i++) @@ -115,9 +116,12 @@ static void test2(int no_iter) break; j++; } - YAZ_CHECK(data_buf && data_len == sizeof v - && v == *((int*) data_buf)); + if (!(data_buf && data_len == sizeof v + && v == *((int*) data_buf))) + failed++; } + if (failed) + YAZ_CHECK_EQ(failed, 0); } zebra_strmap_destroy(sm); }