aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--test/ruby/test_process.rb4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 04043ee215..814cefd514 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jan 28 01:33:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * test/ruby/test_process.rb (TestProcess#test_too_long_path)
+ TestProcess#test_too_long_path): Reduced string size from 100MB
+ to 10MB. 100MB may cause no memory error. It isn't intended.
+
Fri Jan 28 01:27:42 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_process.rb (TestProcess#test_too_long_path2):
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 56a6c596a4..d6a486c5c0 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1234,11 +1234,11 @@ class TestProcess < Test::Unit::TestCase
def test_too_long_path
bug4314 = '[ruby-core:34842]'
- assert_raise(Errno::ENOENT, bug4314) {Process.spawn("a" * 100_000_000)}
+ assert_raise(Errno::ENOENT, bug4314) {Process.spawn("a" * 10_000_000)}
end
def test_too_long_path2
bug4315 = '[ruby-core:34833]'
- assert_raise(Errno::ENOENT, bug4315) {Process.spawn('"a"|'*100_000_000)}
+ assert_raise(Errno::ENOENT, bug4315) {Process.spawn('"a"|'*10_000_000)}
end
end