From 961aec5d95e8e06c5b1e009ca27dae491a555dea Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Wed, 27 Mar 2002 20:07:28 +0000 Subject: [PATCH] Call gedcom_init() as soon as possible. --- t/standalone.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.30.2