diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_system.rb | 7 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon Feb 14 17:28:34 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * test/ruby/test_system.rb (TestSystem#test_system_at): + added test. [ruby-core:35218] (#4393) + Mon Feb 14 13:15:35 2011 NAKAMURA Usaku <usa@ruby-lang.org> * win32/win32.c (is_internal_cmd): if the first char of prog is '@', diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb index 45377da063..7f5b81a2de 100644 --- a/test/ruby/test_system.rb +++ b/test/ruby/test_system.rb @@ -88,6 +88,13 @@ class TestSystem < Test::Unit::TestCase } end + def test_system_at + if /mswin|mingw/ =~ RUBY_PLATFORM + testname = '[ruby-core:35218]' + assert_equal("foo\n", `@echo foo`, testname); + end + end + def test_empty_evstr assert_equal("", eval('"#{}"', nil, __FILE__, __LINE__), "[ruby-dev:25113]") end |