summaryrefslogtreecommitdiff
path: root/test/-ext-
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-21 13:10:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-21 13:10:34 +0000
commit34ec7c5b496fb4dad4536b6e71333484f1d99c4f (patch)
tree7ee556792f9b217dc13d1685744545926863efaa /test/-ext-
parent43b00d8a118e946e57fae4b6a192d3b0e832cf1e (diff)
win32/test_console_attr.rb: reset attributes
* ext/-test-/win32/console/attribute.c (console_set_attribute): set console attribute. * test/-ext-/win32/test_console_attr.rb (reset): reset attributes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-')
-rw-r--r--test/-ext-/win32/test_console_attr.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/-ext-/win32/test_console_attr.rb b/test/-ext-/win32/test_console_attr.rb
index 6e8f93ab99..3afb2d9378 100644
--- a/test/-ext-/win32/test_console_attr.rb
+++ b/test/-ext-/win32/test_console_attr.rb
@@ -4,13 +4,12 @@ if /mswin|mingw/ =~ RUBY_PLATFORM and STDOUT.tty?
require 'test/unit'
class Test_Win32Console < Test::Unit::TestCase
- def setup
- print "\e[m!"
+ def reset
+ STDOUT.console_attribute(7)
end
- def teardown
- print "\e[m!"
- end
+ alias setup reset
+ alias teardown reset
def test_default
info = STDOUT.console_info