From: Peter Verthez Date: Sun, 27 Oct 2002 18:04:07 +0000 (+0000) Subject: Only base name of input file in reference output. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=d1793f50518a3de8f93df037aec6bec636ebda27;p=gedcom-parse.git Only base name of input file in reference output. --- diff --git a/t/src/gomtest.c b/t/src/gomtest.c index 942f703..07cc066 100644 --- a/t/src/gomtest.c +++ b/t/src/gomtest.c @@ -24,6 +24,7 @@ #include "gom.h" #include "output.h" #include "dump_gom.h" +#include "portability.h" #include #include #include "gedcom.h" @@ -117,7 +118,7 @@ int main(int argc, char* argv[]) gedcom_set_message_handler(gedcom_message_handler); output_open(outfilename); - output(0, "\n=== Parsing file %s\n", file_name); + output(0, "\n=== Parsing file %s\n", simple_base_name(file_name)); result = gom_parse_file(file_name); if (result == 0) { output(1, "Parse succeeded\n"); diff --git a/t/src/standalone.c b/t/src/standalone.c index 88b6a28..d2a2f10 100644 --- a/t/src/standalone.c +++ b/t/src/standalone.c @@ -310,7 +310,7 @@ int main(int argc, char* argv[]) gedcom_parse_file(BOGUS_FILE_NAME); } while (run_times-- > 0) { - output(0, "\n=== Parsing file %s\n", file_name); + output(0, "\n=== Parsing file %s\n", simple_base_name(file_name)); result |= gedcom_parse_file(file_name); output(0, "\n=== Total conversion failures: %d\n", total_conv_fails); }