diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-08-05 22:12:04 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-09-25 22:57:28 +0900 |
commit | 7c48a70c47998efd66c4fa3a062eaf66e6dd97d4 (patch) | |
tree | 60e0307770ca3847c9a34163eb9499b6b50afeb7 | |
parent | 7e2775b057d19d5ed06877c3b02299e3b5d2beb7 (diff) |
Test bug_report
-rw-r--r-- | error.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } } |