X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=t%2Fstandalone.c;h=6a9baa8154df2775621fe697e8cc6cdeffdf07d4;hb=1aa245b49a351f8a05049ebf6f189936723b0b69;hp=3db5eda7af45b2fcb98d3437dba9ac3d7f66354a;hpb=fe2dc3978893f5ef76c12b96947d756c36361b63;p=gedcom-parse.git 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);