karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Tests in error when building from trunk
Date Fri, 08 Nov 2013 14:15:32 GMT
I think it's due to the new exit codes in the Stop class. As the exit 
code can be different to 0, the JVM forked for the test doesn't exist 
properly.

Regards
JB

On 11/08/2013 03:11 PM, Christian Schneider wrote:
> This sounds like a file lock issue. It typically only happens on
> windows. As most karaf devs use a linux/unix variant we maybe overlooked
> this problem.
> Typically it happens when a process still runs that has this file open.
> So either we forgot to close the file in our code or maybe it is the pax
> exam problem I saw some time ago where pax exam continues with the next
> test before karaf is fully shut down. According to the ops4j jira this
> should not happen in current pax exam anymore but we saw a similar issue
> in itests in a project only some days ago. There ports were still open
> after a test finished.
>
> Christian
>
> On 08.11.2013 14:26, Satya Deep wrote:
>> Hi
>>
>> I synced the latest code from
>> https://svn.apache.org/repos/asf/karaf/trunk
>> today. I get the below error when I try to build:
>>
>> Tests in error:
>>    testAutoStart(org.apache.karaf.main.MainStartTest): Unable to
>> delete file:
>> C:\svn\svn.apache.org\karaf\main\target\test-classes\test-karaf-home\data\log\karaf.log
>>
>>    testStopWithTimeout(org.apache.karaf.main.MainStartTest): Unable to
>> delete
>> file:
>> C:\svn\svn.apache.org\karaf\main\target\test-classes\test-karaf-home\data\log\karaf.log
>>
>>
>> The build is done successfully if I skip the tests. This is a fresh
>> setup so
>> I may be missing something. Please help.
>>
>> Regards
>> Satya Deep
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Tests-in-error-when-building-from-trunk-tp4030235.html
>>
>> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message