mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Test bug_report
This commit is contained in:
parent
7e2775b057
commit
7c48a70c47
1 changed files with 3 additions and 2 deletions
5
error.c
5
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue