]> granicus.if.org Git - onig/commitdiff
add pattern output for error case
authorK.Kosako <kosako@sofnec.co.jp>
Wed, 30 Jan 2019 04:53:42 +0000 (13:53 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 28 Feb 2019 05:28:18 +0000 (14:28 +0900)
test/test_utf8.c

index 02aa06bea25fdba3b0b05ee14bccb886bd49d9be..ec7726dee0a51b8752be5c9c0169a3d69f98424e 100644 (file)
@@ -61,7 +61,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not,
 
     if (error_no == 0) {
       onig_error_code_to_str((UChar* )s, r);
-      fprintf(err_file, "ERROR: %s\n", s);
+      fprintf(err_file, "ERROR: %s  /%s/\n", s, pattern);
       nerror++;
     }
     else {