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

Re: JavaHL: failing tests when running svn mergeinfo

From: Paul Burba <ptburba_at_gmail.com>
Date: Mon, 21 Sep 2009 17:12:33 -0400

On Fri, Sep 18, 2009 at 4:42 PM, Paul Burba <ptburba_at_gmail.com> wrote:
> On Fri, Sep 18, 2009 at 4:31 PM, Mark Phippard <markphip_at_gmail.com> wrote:
>> On Fri, Sep 18, 2009 at 4:14 PM, Paul Burba <ptburba_at_gmail.com> wrote:
>>
>>> You were right about this being caused by the recent svn mergeinfo
>>> subcommand changes.  I botched
>>> libsvn_client/mergeinfo.c:svn_client_mergeinfo_get_merged() in r39350.
>>>  We don't use this API in Subversion so the test suite obviously
>>> didn't catch the error.  I fixed it in r39445 and clarified
>>> svn_client_mergeinfo_get_merged()'s doc string.  Both of those JavaHL
>>> tests now pass.
>>
>> Confirmed, thanks!
>>
>> On Windows, do you get that one remaining test error?
>>
>> 1) testMergeConflictResolution(org.tigris.subversion.javahl.BasicTests)org.tigris.subversion.javahl.ClientException:
>> Path is not an immediate child of the specified directory
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: traced call
>> svn: Path '/var/folders/np/np0+f8EnHlacqSEtJRJGqk+++TI/-Tmp-/tempfile.3.tmp'
>> is not a child of
>> '/Users/mphippard/work/src-trunk/subversion/bindings/javahl/test-work/working_copies/basic_test36/A'
>> svn: subversion/libsvn_client/merge.c:9277: (apr_err=125007)
>>        at org.tigris.subversion.javahl.SVNClient.merge(Native Method)
>>        at org.tigris.subversion.javahl.SVNClientSynchronized.merge(SVNClientSynchronized.java:1023)
>>        at org.tigris.subversion.javahl.BasicTests.testMergeConflictResolution(BasicTests.java:2601)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at org.tigris.subversion.javahl.RunTests.main(RunTests.java:116)
>>
>> FAILURES!!!
>> Tests run: 51,  Failures: 0,  Errors: 1
>
> Mark,
>
> I get that and two others:
>
> C:\SVN\src-trunk-2\subversion\bindings\javahl\classes>java -cp
> C:\SVN\src-trunk-2\subversion\bindings\javahl\classes;"C:\Program
> Files\Java\jdk1.6.0_14\jre\lib\
> ext\junit-4.4.jar" org.tigris.subversion.javahl.RunTests
> ...E..................................E....
> E..........
> Time: 106.766
> There were 3 errors:
> 1) testLoadRepo(org.tigris.subversion.javahl.SVNAdminTests)java.io.FileNotFoundException:
> subversion\bindings\javahl\tests\data\issue2979.dump (The system
> cannot find the path specified)
>        at java.io.FileInputStream.open(Native Method)
>        at java.io.FileInputStream.<init>(Unknown Source)
>        at org.tigris.subversion.javahl.SVNTests$FileInputer.<init>(SVNTests.java:509)
>        at org.tigris.subversion.javahl.SVNAdminTests.testLoadRepo(SVNAdminTests.java:110)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at org.tigris.subversion.javahl.RunTests.main(RunTests.java:116)

Mark,

This error can be avoided if the current working directory when
running the JavaHL tests is the root of the Subversion code tree. It
seems that r38574 assumes this is the case when finding
'subversion/bindings/javahl/tests/data/issue2979.dump':

+ // locate dump file in test environment
+ String testRoot = System.getProperty("test.rootdir",
+ "subversion/bindings/javahl/test-work");
+ File javahlRoot = new File(testRoot).getParentFile();
+ File dump = new File(javahlRoot, "tests/data/issue2979.dump");

If the test.rootdir system property is NULL and you are not in the
root of the Subversion tree (which is how I historically have run my
tests), then this test fails as testRoot gets a bogus value. Perhaps
this is my fault and either of these is expected to be true when
running the tests?

> 2) testBasicChangelist(org.tigris.subversion.javahl.BasicTests)java.lang.NullPointerException
>        at org.tigris.subversion.javahl.BasicTests.testBasicChangelist(BasicTests.java:2211)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at org.tigris.subversion.javahl.RunTests.main(RunTests.java:116)

Fixed this in r39499

> 3) testMergeConflictResolution(org.tigris.subversion.javahl.BasicTests)org.tigris.subversion.javahl.ClientException:
> Path is not an immediate child of the specified directory
> svn: Path 'C:\DOCUME~1\pburba\LOCALS~1\Temp\tempfile.46.tmp' is not a
> child of 'C:\SVN\src-trunk-2\subversion\bindings\javahl\classes\working_copies\basic_test3
> 6\A'
>
>        at org.tigris.subversion.javahl.SVNClient.merge(Native Method)
>        at org.tigris.subversion.javahl.SVNClientSynchronized.merge(SVNClientSynchronized.java:1023)
>        at org.tigris.subversion.javahl.BasicTests.testMergeConflictResolution(BasicTests.java:2601)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at org.tigris.subversion.javahl.RunTests.main(RunTests.java:116)

You can trigger this from the command line with --accept theirs-full |
base. There is a lot of ongoing wc-ng work related to this problem,
see http://svn.haxx.se/dev/archive-2009-09/0398.shtml and
http://svn.haxx.se/dev/archive-2009-09/0382.shtml. I'll check back on
this particular test once some of that wcng work has taken place (or
I'm ready to more directly participate in it myslef).

Paul

> FAILURES!!!
> Tests run: 51,  Failures: 0,  Errors: 3
>
> I've seen these for some time IIRC.  I'll look into these.
>
> Paul

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2397588
Received on 2009-09-21 23:12:44 CEST

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.