mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix CI build errors and warnings.
This commit is contained in:
@@ -12,8 +12,8 @@ assert('regression for #1563') do
|
||||
end
|
||||
|
||||
assert('mirb -d option') do
|
||||
o, s = Open3.capture2('bin/mirb', :stdin_data => "p $DEBUG\n")
|
||||
o, _ = Open3.capture2('bin/mirb', :stdin_data => "p $DEBUG\n")
|
||||
assert_true o.include?('=> false')
|
||||
o, s = Open3.capture2('bin/mirb -d', :stdin_data => "p $DEBUG\n")
|
||||
o, _ = Open3.capture2('bin/mirb -d', :stdin_data => "p $DEBUG\n")
|
||||
assert_true o.include?('=> true')
|
||||
end
|
||||
|
||||
@@ -60,8 +60,8 @@ RUBY
|
||||
end
|
||||
|
||||
assert('mruby -d option') do
|
||||
o = `#{cmd('mruby')} -e #{shellquote('p $DEBUG')}>&1`
|
||||
assert_equal o, "false\n"
|
||||
o = `#{cmd('mruby')} -d -e #{shellquote('p $DEBUG')}>&1`
|
||||
assert_equal o, "true\n"
|
||||
o = `#{cmd('mruby')} -e #{shellquote('p $DEBUG')}`
|
||||
assert_equal "false\n", o
|
||||
o = `#{cmd('mruby')} -d -e #{shellquote('p $DEBUG')}`
|
||||
assert_equal "true\n", o
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user