Test program for updates in gom.
[gedcom-parse.git] / t / src / standalone.c
index 88b6a2854d85725b8018c6f39f61daca7617feb5..7868cf24b9dba1898a756422c6518e606ea4f1ef 100644 (file)
@@ -30,9 +30,9 @@
 #include <locale.h>
 #include <errno.h>
 #include <iconv.h>
-#include "utf8-locale.h"
+#include "utf8.h"
 
-#define BOGUS_FILE_NAME "Makefile.am"
+#define BOGUS_FILE_NAME "bogus.ged"
 int total_conv_fails = 0;
 
 void show_help ()
@@ -49,7 +49,7 @@ void show_help ()
   printf("  -da   Debug setting: libgedcom + yacc debug messages\n");
   printf("  -2    Run the test parse 2 times instead of once\n");
   printf("  -3    Run the test parse 3 times instead of once\n");
-  printf("  -b    Parse a bogus file before parsing the main file\n");
+  printf("  -b    Parse a bogus file (bogus.ged) before parsing the main file\n");
   printf("  -q    No output to standard output\n");
   printf("  -o <outfile>  File to generate output to (def. testgedcom.out)\n");
 }
@@ -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);
   }