X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fread-marc.c;h=e1ecb3b691549fed4c2dbc1518b3b99476c36cef;hp=cecbabcac0d891a763d2e2aeea60f19ac523bd12;hb=04b09c082a7882398a10d5ec62e80ac175fe2a9b;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0 diff --git a/ztest/read-marc.c b/ztest/read-marc.c index cecbabc..e1ecb3b 100644 --- a/ztest/read-marc.c +++ b/ztest/read-marc.c @@ -3,14 +3,17 @@ * See the file LICENSE for details. */ -/* - * Little toy-thing to read a MARC records from a fixed array. +/** \file + * \brief Little toy-thing to read MARC records from a file or fixed array. */ + #include #include #include #include +#include "ztest.h" + char *marc_records[] = { "\x30\x30\x33\x36\x36\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x31\x36" @@ -1572,12 +1575,6 @@ char *dummy_marc_record (int num, ODR odr) FILE *inf; char *buf = 0; - if (num == 98) - { /* this will generate a very bad MARC record (testing only) */ - buf = (char*) odr_malloc(odr, 2101); - memset(buf, '7', 2100); - buf[2100] = '\0'; - } inf = fopen ("dummy-records", "r"); if (!inf) { /* file not there. Get them from fixed array */