Fix CI build errors and warnings.

This commit is contained in:
Hiroshi Mimaki
2018-05-07 12:23:32 +09:00
parent 1d16646506
commit 0c01afc3c9
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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
+4 -4
View File
@@ -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