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

[Ruby bindings] Regressions since 1.4?

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2007-10-07 17:35:54 CEST

As a way to find out if there where any regressions in the Ruby bindings, I
created a test_1.4 directory in my trunk WC under swig/ruby. Into it I copied
all the files and directories from the trunk swig/ruby/test directory, then I
copied all the test_*.rb files from the 1.4.x branch overtop the trunk tests.

Run against a trunk build (r27001) below are my results. Some of the failures
are due to line ending support we added on trunk that never existed in 1.4. I
think the diff and diff_summarize tests are due to changes in how subversion
itself handles "recurse" so might indicate where the 1.4 tests should be
updated. Other cases seem like places we might be failing folks who've
written scripts using the existing bindings.

Was this worth doing? Are my conclusions reasonable? If my conclusions are
sound, what needs to be done before branching for 1.5?

--
Joe
******************************************************************************
D:\SVN\src-trunk\subversion\bindings\swig\ruby>test_1.4\run-test.rb
Loaded suite .
Started
.FF..F.F.F..FF..FF.........FFF...F....E...F.F.................FF...................EFE......F..............E.E...............F....F.
..
Finished in 624.497 seconds.
  1) Failure:
test_add_no_ignore(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:102]:
<Svn::Error::FsNotFound> exception expected but none was thrown.
  2) Failure:
test_add_not_recurse(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:37]:
<Svn::Error::FsNotFound> exception expected but none was thrown.
  3) Failure:
test_authentication(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:1631]:
<Svn::Error::AuthnNoProvider> exception expected but was
Class: <Svn::Error::WcNotDirectory>
Message: <"D:\\SVN\\src-trunk\\subversion\\libsvn_wc\\lock.c:601 '\\'
is not a working copy\nCan't open file '\\.svn\\entries': The
system cannot find the path specified.  ">
---Backtrace---
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in
`svn_client_cat2'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in `cat2'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/client.rb:339:in `cat'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:1632:in
`test_authentication'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:1631:in
`test_authentication'
---------------
  4) Failure:
test_cat(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:1289]:
<"source1\n"> expected but was
<"source1\r\n">.
  5) Failure:
test_cleanup(SvnClientTest)
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:940:in
`test_cleanup'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/util.rb:73:in
`change_gc_status'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/util.rb:84:in
`gc_disable'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:936:in
`test_cleanup':
<Svn::Error::WcLocked> exception expected but none was thrown.
  6) Failure:
test_delete(SvnClientTest)
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:247:in
`test_delete'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/util.rb:73:in
`change_gc_status'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/util.rb:84:in
`gc_disable'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:243:in
`test_delete':
<Svn::Error::WcLocked> exception expected but none was thrown.
  7) Failure:
test_delete_alias(SvnClientTest)
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:287:in
`test_delete_alias'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/util.rb:73:in
`change_gc_status'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/util.rb:84:in
`gc_disable'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:283:in
`test_delete_alias':
<Svn::Error::WcLocked> exception expected but none was thrown.
  8) Failure:
test_diff_summarize(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:763]:
<["hello.txt"]> expected but was
<[""]>.
  9) Failure:
test_diff_summarize_peg(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:815]:
<["after.txt"]> expected but was
<[""]>.
 10) Failure:
test_merge(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:851]:
<"sample\n"> expected but was
<"sample\r\n">.
 11) Failure:
test_merge_peg(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:898]:
<"sample\n"> expected but was
<"sample\r\n">.
 12) Failure:
test_mkdir(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:142]:
<Svn::Error> exception expected but was
Class: <Svn::Error::SvnError>
Message: <"D:\\SVN\\src-trunk\\subversion\\libsvn_subr\\io.c:2939
Can't create directory 'test_1.4\\wc-tmp\\wc\\d\\e\\e\\p': The sys
tem cannot find the path specified.  ">
---Backtrace---
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in
`svn_client_mkdir2'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in `mkdir2'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/client.rb:116:in `mkdir'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:143:in
`test_mkdir'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:142:in
`test_mkdir'
---------------
 13) Failure:
test_move_force(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:1111]:
<Svn::Error::ClientModified> exception expected but none was thrown.
 14) Error:
test_relocate(SvnClientTest):
Svn::Error::RaIllegalUrl:
D:\SVN\src-trunk\subversion\libsvn_ra\ra_loader.c:453 Unrecognized URL
scheme for ''
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in
`svn_client_relocate'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in `relocate'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/client.rb:173:in `relocate'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:984:in
`test_relocate'
 15) Failure:
test_simple_provider(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:1678]:
<Svn::Error::RaNotAuthorized> exception expected but was
Class: <Svn::Error::WcNotDirectory>
Message: <"D:\\SVN\\src-trunk\\subversion\\libsvn_wc\\lock.c:601 '\\'
is not a working copy\nCan't open file '\\.svn\\entries': The
system cannot find the path specified.  ">
---Backtrace---
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in
`svn_client_cat2'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in `cat2'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/client.rb:339:in `cat'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:1679:in
`test_simple_provider'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:1678:in
`test_simple_provider'
---------------
 16) Failure:
test_switch(SvnClientTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_client.rb:1585]:
<"trunk source\n"> expected but was
<"trunk source\r\n">.
 17) Failure:
test_diff_merge(SvnCoreTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_core.rb:393]:
<"\n  b\n\nd\n e\n"> expected but was
<"\r\n  b\r\n\r\nd\r\n e\r\n">.
 18) Failure:
test_diff_unified(SvnCoreTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_core.rb:317]:
<"--- (orig)\n+++ (mod)\n@@ -1,3 +1,3 @@\n-  a\n-b\n-  c\n+a\n+\n+
c\n"> expected but was
<"--- (orig)\r\n+++ (mod)\r\n@@ -1,3 +1,3 @@\r\n-  a\r\n-b\r\n-
c\r\n+a\r\n+\r\n+ c\r\n">.
 19) Error:
test_create(SvnFsTest):
Svn::Error::SvnError:
D:\SVN\src-trunk\subversion\libsvn_subr\io.c:1894 Can't remove
'test_1.4\tmp\fs': The directory is not empty.
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in
`svn_fs_delete_fs'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in `delete_fs'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/fs.rb:39:in `delete'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/fs.rb:63:in `delete'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_fs.rb:39:in
`test_create'
 20) Failure:
test_delta(SvnFsTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_fs.rb:301]:
<"A\n\n\n\nE\n"> expected but was
<"<<<<<<< .mine\nA\nb\nc\nd\nE\n=======\na\n\n\n\ne\n>>>>>>> .r2\n">.
 21) Error:
test_hotcopy(SvnFsTest):
Svn::Error::SvnError:
D:\SVN\src-trunk\subversion\libsvn_subr\io.c:2939 Can't create
directory 'test_1.4\repos\db\revs\0': Cannot cr
eate a file when that file already exists.
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in
`svn_fs_hotcopy'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in `_hotcopy'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/fs.rb:47:in `hotcopy'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/fs.rb:72:in `hotcopy'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_fs.rb:69:in
`test_hotcopy'
 22) Failure:
test_diff(SvnInfoTest)
[D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_info.rb:202]:
<2> expected but was
<1>.
 23) Error:
test_create(SvnReposTest):
Svn::Error::SvnError:
D:\SVN\src-trunk\subversion\libsvn_subr\io.c:1894 Can't remove
'test_1.4\tmp\repos\db': The directory is not e
mpty.
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in
`svn_repos_delete'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in `delete'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_repos.rb:86:in
`test_create'
 24) Error:
test_load(SvnReposTest):
Svn::Error::IncompleteData:
D:\SVN\src-trunk\subversion\libsvn_repos\load.c:116 Premature end of
content data in dumpstream
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in
`svn_repos_load_fs2'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in `load_fs2'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/repos.rb:323:in `load_fs'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_repos.rb:397:in
`test_load'
 25) Failure:
test_locked(SvnWcTest)
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_wc.rb:375:in
`test_locked'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/util.rb:73:in
`change_gc_status'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/util.rb:84:in
`gc_disable'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_wc.rb:371:in
`test_locked':
<false> is not true.
 26) Failure:
test_translated_file(SvnWcTest)
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_wc.rb:431:in
`test_translated_file'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/wc.rb:126:in `_open'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/wc.rb:104:in `open'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/test_1.4/test_wc.rb:423:in
`test_translated_file':
<"a\r\n"> expected but was
<"a\n">.
134 tests, 4488 assertions, 21 failures, 5 errors
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Oct 7 17:36:05 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.