1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress messages from mkmf

This commit is contained in:
Nobuyoshi Nakada 2019-06-20 19:27:27 +09:00
parent 9e7a8a4351
commit 1f0762ad21
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -130,8 +130,10 @@ module TestMkmf::Base
def mkmf(*args, &block)
@stdout.clear
stdout, @stdout.origin, $stdout = @stdout.origin, $stdout, @stdout
verbose, $VERBOSE = $VERBOSE, false
@mkmfobj.instance_eval(*args, &block)
ensure
$VERBOSE = verbose
$stdout, @stdout.origin = @stdout.origin, stdout
end