summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-08-04 16:56:55 +0900
committerNobuyoshi Nakada <[email protected]>2023-09-25 22:57:28 +0900
commit530b5ef6b6cf3c253f75f5c267234541f7ef4122 (patch)
treea5bc34a3c32aae06d188c5ba00d86ecb6ddffad8 /error.c
parentbe40eacc9d20118e27cfa7d047f7fceea5ef6ab6 (diff)
Test bug_report
Diffstat (limited to 'error.c')
-rw-r--r--error.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/error.c b/error.c
index 1abce04772..5fd40585cb 100644
--- a/error.c
+++ b/error.c
@@ -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)