From 7c48a70c47998efd66c4fa3a062eaf66e6dd97d4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 5 Aug 2023 22:12:04 +0900 Subject: [PATCH] Test bug_report --- error.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/error.c b/error.c index 248132d2cb37e1..a492d1c3e15600 100644 --- a/error.c +++ b/error.c @@ -1000,12 +1000,13 @@ bug_report_end(FILE *out, rb_pid_t pid) void ruby_test_bug_report(const char *template) { + rb_pid_t pid = -1; char buf[REPORT_BUG_BUFSIZ]; - FILE *out = open_report_path(template, buf, sizeof(buf)); + FILE *out = open_report_path(template, buf, sizeof(buf), &pid); if (out) { time_t t = time(NULL); fprintf(out, "ruby_test_bug_report: %s", ctime(&t)); - finish_report(out); + finish_report(out, pid); } }