summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_system.rb7
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a1d6d7606e..abcf956ac75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 45377da0639..7f5b81a2de8 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