Skip to content

Commit

Permalink
Test bug_report
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Aug 5, 2023
1 parent fff71ab commit 0e3b367
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions error.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,11 +979,12 @@ 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) {
fputs("ruby_test_bug_report\n", out);
finish_report(out);
finish_report(out, pid);
}
}

Expand Down

0 comments on commit 0e3b367

Please sign in to comment.