[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] normalize line endings for expected results of test_client.rb Ruby Bindings tests

From: Kouhei Sutou <kou_at_cozmixng.org>
Date: 2007-01-18 16:00:22 CET

Hi,

In <ae6cb1100701170927p15532ec6m139a9798779d0653@mail.gmail.com>
  "[PATCH] normalize line endings for expected results of test_client.rb Ruby Bindings tests" on Wed, 17 Jan 2007 09:27:32 -0800,
  "Joe Swatosh" <joe.swatosh@gmail.com> wrote:

> If I try to run the tests together I get many more errors due to
> previous tests leaving the test repository lieing around. This is
> looking like it might be releated to the Fs close issue we've been
> talking about.

OK. I'll think about the problem too.

> [[[
> * subversion/bindings/swig/ruby/test/test_client.rb
> call normalize_line_break on the expected result for various tests.
> ]]]

Can this problem be solved by the attached patch?

Thanks,

--
kou

Index: subversion/bindings/swig/ruby/test/test_client.rb
===================================================================
--- subversion/bindings/swig/ruby/test/test_client.rb (revision 23087)
+++ subversion/bindings/swig/ruby/test/test_client.rb (working copy)
@@ -828,7 +828,9 @@
   def test_merge
     log = "sample log"
     file = "sample.txt"
- src = "sample\n"
+ src = <<-EOS
+sample
+EOS
     trunk = File.join(@wc_path, "trunk")
     branch = File.join(@wc_path, "branch")
     trunk_path = File.join(trunk, file)
@@ -875,7 +877,9 @@
   def test_merge_peg
     log = "sample log"
     file = "sample.txt"
- src = "sample\n"
+ src = <<-EOS
+sample
+EOS
     trunk = File.join(@wc_path, "trunk")
     branch = File.join(@wc_path, "branch")
     trunk_path = File.join(trunk, file)
@@ -1274,8 +1278,12 @@
   
   def test_cat
     log = "sample log"
- src1 = "source1\n"
- src2 = "source2\n"
+ src1 = <<-EOS
+source1
+EOS
+ src2 = <<-EOS
+source2
+EOS
     file = "sample.txt"
     path = File.join(@wc_path, file)
 
@@ -1553,8 +1561,12 @@
 
   def test_switch
     log = "sample log"
- trunk_src = "trunk source\n"
- tag_src = "tag source\n"
+ trunk_src = <<-EOS
+trunk source
+EOS
+ tag_src = <<-EOS
+tag source
+EOS
     file = "sample.txt"
     file = "sample.txt"
     trunk_dir = "trunk"
@@ -1615,7 +1627,9 @@
 
   def test_authentication
     log = "sample log"
- src = "source\n"
+ src = <<-EOS
+source
+EOS
     file = "sample.txt"
     path = File.join(@wc_path, file)
     svnserve_uri = "#{@repos_svnserve_uri}/#{file}"
@@ -1660,7 +1674,9 @@
 
   def test_simple_provider
     log = "sample log"
- src = "source\n"
+ src = <<-EOS
+source
+EOS
     file = "sample.txt"
     path = File.join(@wc_path, file)
     svnserve_uri = "#{@repos_svnserve_uri}/#{file}"
@@ -1699,7 +1715,9 @@
     return unless Svn::Core.respond_to?(:add_windows_simple_provider)
 
     log = "sample log"
- src = "source\n"
+ src = <<-EOS
+source
+EOS
     file = "sample.txt"
     path = File.join(@wc_path, file)
     svnserve_uri = "#{@repos_svnserve_uri}/#{file}"

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jan 18 16:01:05 2007

This is an archived mail posted to the Subversion Dev mailing list.