From: Peter Verthez Date: Wed, 27 Mar 2002 20:07:28 +0000 (+0000) Subject: Call gedcom_init() as soon as possible. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=961aec5d95e8e06c5b1e009ca27dae491a555dea;p=gedcom-parse.git Call gedcom_init() as soon as possible. --- diff --git a/t/standalone.c b/t/standalone.c index 3db5eda..6a9baa8 100644 --- a/t/standalone.c +++ b/t/standalone.c @@ -32,6 +32,7 @@ #include "utf8-locale.h" #define OUTFILE "testgedcom.out" +#define BOGUS_FILE_NAME "Makefile.am" FILE* outfile = NULL; int quiet = 0; @@ -265,8 +266,8 @@ int main(int argc, char* argv[]) exit(1); } - setlocale(LC_ALL, ""); gedcom_init(); + setlocale(LC_ALL, ""); gedcom_set_debug_level(debug_level, NULL); gedcom_set_compat_handling(compat_enabled); gedcom_set_error_handling(mech); @@ -278,6 +279,8 @@ int main(int argc, char* argv[]) if (!outfile) { printf("Could not open %s for appending\n", OUTFILE); } + output(0, "\n=== Parsing bogus file %s\n", BOGUS_FILE_NAME); + gedcom_parse_file(BOGUS_FILE_NAME); while (run_times-- > 0) { output(0, "\n=== Parsing file %s\n", file_name); result |= gedcom_parse_file(file_name);