From 54142064c4dc8559e3c6d13a1fdb95bcb5f06d95 Mon Sep 17 00:00:00 2001 From: kou Date: Fri, 19 Nov 2010 13:11:20 +0000 Subject: [PATCH] * test/rexml/test_core.rb (Tester#test_pretty_format_long_text_finite): skip a test that uses long string on small memory system. [ruby-dev:42599] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ test/rexml/test_core.rb | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fe550356da..3ae5b7c83f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Nov 19 22:09:46 2010 Kouhei Sutou + + * test/rexml/test_core.rb + (Tester#test_pretty_format_long_text_finite): skip a test that + uses long string on small memory system. [ruby-dev:42599] + Fri Nov 19 21:07:06 2010 Nobuyoshi Nakada * lib/optparse.rb: shell completion support for zsh. based on diff --git a/test/rexml/test_core.rb b/test/rexml/test_core.rb index d9280f6aed..90d83f11a5 100644 --- a/test/rexml/test_core.rb +++ b/test/rexml/test_core.rb @@ -1156,7 +1156,16 @@ EOL long_text = 'aaaa ' * n xml = "#{long_text}" formatter = REXML::Formatters::Pretty.new - document = REXML::Document.new(xml) + document = nil + begin + document = REXML::Document.new(xml) + rescue REXML::ParseException + skip_message = "skip this test because we can't check Pretty#wrap " + + "works without # on " + + "small memory system. # " + + "will be raised on the system. See also [ruby-dev:42599]." + return skip_message + end output = "" assert_nothing_raised do formatter.write(document, output)