[ruby/io-console] Run subprocesses without test libraries

Now io/console is loaded from test-unit indirectly, test-unit
requires power_assert which requires io/console.

8817d07951
639cce89de
This commit is contained in:
Nobuyoshi Nakada 2021-01-29 12:49:00 +09:00
parent fcdccbff01
commit 9ef7780b09
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -545,14 +545,14 @@ end
TestIO_Console.class_eval do
def test_stringio_getch
assert_separately %w"--disable=gems -rstringio -rio/console", %q{
assert_operator(StringIO, :method_defined?, :getch)
assert_ruby_status %w"--disable=gems -rstringio -rio/console", %q{
abort unless StringIO.method_defined?(:getch)
}
assert_separately %w"--disable=gems -rio/console -rstringio", %q{
assert_operator(StringIO, :method_defined?, :getch)
assert_ruby_status %w"--disable=gems -rio/console -rstringio", %q{
abort unless StringIO.method_defined?(:getch)
}
assert_separately %w"--disable=gems -rstringio", %q{
assert_not_operator(StringIO, :method_defined?, :getch)
assert_ruby_status %w"--disable=gems -rstringio", %q{
abort if StringIO.method_defined?(:getch)
}
end
end