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

Status report for Ruby bindings on Windows

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2007-01-18 00:13:14 CET

Hi,

The Ruby bindings compile and link successfully for me using VC6 and
SWIG 1.3.24.

There are test failures and errors. Since there are interactions
among the tests I ran each test individually using (all one line)

for %A in (test\test_*.rb) do for /f "tokens=1,2" %I in ('findstr
/c:"def test_" %A') do ruby -Itest %A -n %J & for %K in (repos config
tmp wc-tmp) do @if exist test\%K rd /q/s test\%K

Below with are the results with the success full tests removed.

The three client tests actually complete succesfully, but can't delete the test
repository they create (which is the source of at least one interaction, since
subsequent tests can't create a test repository). My guess is that there is
still a pool somewhere holding it open.

The other two failures may somehow be related to line endings again? I'm not
sure.

I'm going to take some time off and try to hit it fresh next week.
Please send me suggestions or ideas.

--
Joe
+++++++++++++++++++++++++++++++++++++++++++
D:\SVN\src-trunk\subversion\bindings\swig\ruby>ruby -Itest
test\test_client.rb -n test_blame   & for %K in (repos config tmp
wc-tmp) do if exist test\%K rd /q/s test\%K
Loaded suite test/test_client
Started
E
Finished in 5.326 seconds.
  1) Error:
test_blame(SvnClientTest):
Svn::Error: D:\SVN\src-trunk\subversion\libsvn_subr\io.c:1801 Can't
remove 'test\repos\db\revs\1'
Can't set file 'test\repos\db\revs\1' read-write: Access is denied.
    ./svn/util.rb:66:in `svn_repos_delete'
    ./svn/util.rb:66:in `delete'
    ./test/util.rb:104:in `teardown_repository'
    ./test/util.rb:43:in `teardown_basic'
    test/test_client.rb:15:in `teardown'
1 tests, 2 assertions, 0 failures, 1 errors
D:\SVN\src-trunk\subversion\bindings\swig\ruby>ruby -Itest
test\test_client.rb -n test_diff   & for %K in (repos config tmp
wc-tmp) do if exist test\%K rd /q/s test\%K
Loaded suite test/test_client
Started
E
Finished in 3.564 seconds.
  1) Error:
test_diff(SvnClientTest):
Svn::Error: D:\SVN\src-trunk\subversion\libsvn_subr\io.c:1801 Can't
remove 'test\repos\db\revs\2'
Can't set file 'test\repos\db\revs\2' read-write: Access is denied.
    ./svn/util.rb:66:in `svn_repos_delete'
    ./svn/util.rb:66:in `delete'
    ./test/util.rb:104:in `teardown_repository'
    ./test/util.rb:43:in `teardown_basic'
    test/test_client.rb:15:in `teardown'
1 tests, 2 assertions, 0 failures, 1 errors
D:\SVN\src-trunk\subversion\bindings\swig\ruby>ruby -Itest
test\test_client.rb -n test_diff_peg   & for %K in (repos config tmp
wc-tmp) do if exist test\%K rd /q/s test\%K
Loaded suite test/test_client
Started
E
Finished in 3.524 seconds.
  1) Error:
test_diff_peg(SvnClientTest):
Svn::Error: D:\SVN\src-trunk\subversion\libsvn_subr\io.c:1801 Can't
remove 'test\repos\db\revs\2'
Can't set file 'test\repos\db\revs\2' read-write: Access is denied.
    ./svn/util.rb:66:in `svn_repos_delete'
    ./svn/util.rb:66:in `delete'
    ./test/util.rb:104:in `teardown_repository'
    ./test/util.rb:43:in `teardown_basic'
    test/test_client.rb:15:in `teardown'
1 tests, 2 assertions, 0 failures, 1 errors
D:\SVN\src-trunk\subversion\bindings\swig\ruby>ruby -Itest
test\test_fs.rb -n test_delta   & for %K in (repos config tmp wc-tmp)
do if exist test\%K rd /q/s test\%K
Loaded suite test/test_fs
Started
F
Finished in 3.885 seconds.
  1) Failure:
test_delta(SvnFsTest) [test/test_fs.rb:311]:
<"A\n\n\n\nE\n"> expected but was
<"<<<<<<< .mine\nA\nb\nc\nd\nE\n=======\na\n\n\n\ne\n>>>>>>> .r2\n">.
1 tests, 1 assertions, 1 failures, 0 errors
D:\SVN\src-trunk\subversion\bindings\swig\ruby>ruby -Itest
test\test_info.rb -n test_diff   & for %K in (repos config tmp wc-tmp)
do if exist test\%K rd /q/s test\%K
Loaded suite test/test_info
Started
F
Finished in 4.366 seconds.
  1) Failure:
test_diff(SvnInfoTest) [test/test_info.rb:202]:
<2> expected but was
<1>.
1 tests, 12 assertions, 1 failures, 0 errors
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jan 18 00:13:31 2007

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