diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-08-04 16:56:55 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-09-25 22:57:28 +0900 |
commit | 530b5ef6b6cf3c253f75f5c267234541f7ef4122 (patch) | |
tree | a5bc34a3c32aae06d188c5ba00d86ecb6ddffad8 /error.c | |
parent | be40eacc9d20118e27cfa7d047f7fceea5ef6ab6 (diff) |
Test bug_report
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -958,6 +958,18 @@ bug_report_end(FILE *out) } \ } while (0) \ +void +ruby_test_bug_report(const char *template) +{ + char buf[REPORT_BUG_BUFSIZ]; + FILE *out = open_report_path(template, buf, sizeof(buf)); + if (out) { + time_t t = time(NULL); + fprintf(out, "ruby_test_bug_report: %s", ctime(&t)); + finish_report(out); + } +} + NORETURN(static void die(void)); static void die(void) |