btest: assign $stderr = STDOUT instead of IO#reopen to be more portable
IO#reopen internally uses dup syscall but some platforms don't support the syscall. re-assigning $stderr is enough to capture the interpreter's errors and warnings.
IO#reopen
$stderr
btest: assign $stderr = STDOUT instead of IO#reopen to be more portable
IO#reopeninternally uses dup syscall but some platforms don't supportthe syscall. re-assigning
$stderris enough to capture the interpreter'serrors and warnings.