You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Andrew McIntyre <mc...@gmail.com> on 2006/07/18 10:15:01 UTC

sysinfo_api.junit failing in Tinderbox (was: Re: Regression Test Failure! - TinderBox_Derby 422909)

The test below that is reported as failing is the new test introduced
with DERBY-982, sysinfo_api.junit. This test passes on both my Mac OS
X and Windows XP system before and after commit. Does anyone have any
insight as to why the test may be failing in the Tinderbox
environment?

On 7/17/06, Ole.Solberg@sun.com <Ol...@sun.com> wrote:
> [Auto-generated mail]
>
> *TinderBox_Derby* 422909/2006-07-18 01:13:14 CEST
> *derbyall*
>
> Failed  Tests    OK  Skip  Duration       Platform
> -------------------------------------------------------
> *Jvm: 1.5*
>     1    680    679     2   145.46%     SunOS-5.10_i86pc-i386

Re: Re: sysinfo_api.junit failing in Tinderbox

Posted by Andrew McIntyre <mc...@gmail.com>.
On 7/18/06, Rick Hillegas <Ri...@sun.com> wrote:
> Here's another clue:
>
> When run against the jars, ProductVersionHolder.loadProperties() is able
> to find the following resource:
>
> /org/apache/derby/info/DBMS.properties
>
> but not this one:
>
> /org/apache/derby/info/tools.properties

Thanks Andreas and Rick, I'll remove the test from the suite until I
can figure the problem out. At the moment, I'm suspecting that it may
be a security manager issue.

andrew

Re: sysinfo_api.junit failing in Tinderbox

Posted by Rick Hillegas <Ri...@Sun.COM>.
Here's another clue:

When run against the jars, ProductVersionHolder.loadProperties() is able 
to find the following resource:

/org/apache/derby/info/DBMS.properties

but not this one:

/org/apache/derby/info/tools.properties

-Rick

Kristian Waagan wrote:

> Andreas Korneliussen wrote:
>
>> Andrew McIntyre wrote:
>>
>>> The test below that is reported as failing is the new test introduced
>>> with DERBY-982, sysinfo_api.junit. This test passes on both my Mac OS
>>> X and Windows XP system before and after commit. Does anyone have any
>>> insight as to why the test may be failing in the Tinderbox
>>> environment?
>>>
>>
>> It failed for me when using jar-files in the classpath, however it 
>> passed when using classes directory. The tinderbox uses jar-files.
>
>
> The errors below are the same as I saw when I first tried the old test 
> for DERBY-982 (master based, not JUnit). When I think about it, I 
> think I also ran the new JUnit test from classes instead of jars.
>
> Is this maybe a problem with sysinfo, or how it is run, and not the 
> test itself?
>
>
>


Re: sysinfo_api.junit failing in Tinderbox (was: Re: Regression Test Failure! - TinderBox_Derby 422909)

Posted by Kristian Waagan <Kr...@Sun.COM>.
Andreas Korneliussen wrote:
> Andrew McIntyre wrote:
>> The test below that is reported as failing is the new test introduced
>> with DERBY-982, sysinfo_api.junit. This test passes on both my Mac OS
>> X and Windows XP system before and after commit. Does anyone have any
>> insight as to why the test may be failing in the Tinderbox
>> environment?
>>
> 
> It failed for me when using jar-files in the classpath, however it 
> passed when using classes directory. The tinderbox uses jar-files.

The errors below are the same as I saw when I first tried the old test 
for DERBY-982 (master based, not JUnit). When I think about it, I think 
I also ran the new JUnit test from classes instead of jars.

Is this maybe a problem with sysinfo, or how it is run, and not the test 
itself?



-- 
Kristian


> 
> 
> ak136785@khepri35:/<5>802/testing> java 
> org.apache.derbyTesting.functionTests.harness.RunTest 
> tools/sysinfo_api.junit
> *** Start: sysinfo_api jdk1.4.2_02 2006-07-18 10:34:35 ***
> 0 add
>  > .F.F.F.F.
>  > There were 4 failures:
>  > 1) 
> testMajorVersion(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.AssertionFailedError: 
> expected:<10> but was:<-1>
>  > 2) 
> testMinorVersion(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.AssertionFailedError: 
> expected:<2> but was:<-1>
>  > 3) 
> testProductName(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.ComparisonFailure: 
> expected:<Apache Derby> but was:<<no name found>>
>  > 4) 
> testVersionString(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.ComparisonFailure: 
> expected:<10.2.0.4 alpha> but was:<<no name found>>
>  > FAILURES!!!
>  > Tests run: 5,  Failures: 4,  Errors: 0
> Test Failed.
> *** End:   sysinfo_api jdk1.4.2_02 2006-07-18 10:34:41 ***
> ak136785@khepri35:/<5>802/testing> env | grep CLASSPA
> CLASSPATH=/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyrun.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derby.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyclient.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/junit.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbytools.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbynet.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/junit.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/jakarta-oro-2.0.8.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyTesting.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_de_DE.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_es.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_fr.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_it.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_ja_JP.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_k
o_ 
> 
> KR.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_pt_BR.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_zh_CN.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_zh_TW.jar:/usr/local/share/java/db2jcc/lib/db2jcc.jar:/usr/local/share/java/db2jcc/lib/db2jcc_license_c.jar 
> 
> ak136785@khepri35:/<5>802/testing> setenv CLASSPATH 
> /export/home/tmp/devel/issue/802/trunk/classes/:/export/home/tmp/devel/issue/802/trunk/tools/java/junit.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/jakarta-oro-2.0.8.jar 
> 
> ak136785@khepri35:/<5>802/testing> java 
> org.apache.derbyTesting.functionTests.harness.RunTest 
> tools/sysinfo_api.junit *** Start: sysinfo_api jdk1.4.2_02 2006-07-18 
> 10:36:18 ***
> *** End:   sysinfo_api jdk1.4.2_02 2006-07-18 10:36:24 ***
> 
> 
> Andreas


Re: sysinfo_api.junit failing in Tinderbox (was: Re: Regression Test Failure! - TinderBox_Derby 422909)

Posted by Rick Hillegas <Ri...@Sun.COM>.
I can confirm this behavior. Fails against jars, succeeds against classtree.

Andreas Korneliussen wrote:

> Andrew McIntyre wrote:
>
>> The test below that is reported as failing is the new test introduced
>> with DERBY-982, sysinfo_api.junit. This test passes on both my Mac OS
>> X and Windows XP system before and after commit. Does anyone have any
>> insight as to why the test may be failing in the Tinderbox
>> environment?
>>
>
> It failed for me when using jar-files in the classpath, however it 
> passed when using classes directory. The tinderbox uses jar-files.
>
>
> ak136785@khepri35:/<5>802/testing> java 
> org.apache.derbyTesting.functionTests.harness.RunTest 
> tools/sysinfo_api.junit
> *** Start: sysinfo_api jdk1.4.2_02 2006-07-18 10:34:35 ***
> 0 add
> > .F.F.F.F.
> > There were 4 failures:
> > 1) 
> testMajorVersion(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.AssertionFailedError: 
> expected:<10> but was:<-1>
> > 2) 
> testMinorVersion(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.AssertionFailedError: 
> expected:<2> but was:<-1>
> > 3) 
> testProductName(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.ComparisonFailure: 
> expected:<Apache Derby> but was:<<no name found>>
> > 4) 
> testVersionString(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.ComparisonFailure: 
> expected:<10.2.0.4 alpha> but was:<<no name found>>
> > FAILURES!!!
> > Tests run: 5,  Failures: 4,  Errors: 0
> Test Failed.
> *** End:   sysinfo_api jdk1.4.2_02 2006-07-18 10:34:41 ***
> ak136785@khepri35:/<5>802/testing> env | grep CLASSPA
> CLASSPATH=/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyrun.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derby.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyclient.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/junit.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbytools.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbynet.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/junit.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/jakarta-oro-2.0.8.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyTesting.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_de_DE.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_es.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_fr.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_it.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_ja_JP.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_!
 ko_ 
>
> KR.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_pt_BR.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_zh_CN.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_zh_TW.jar:/usr/local/share/java/db2jcc/lib/db2jcc.jar:/usr/local/share/java/db2jcc/lib/db2jcc_license_c.jar 
>
> ak136785@khepri35:/<5>802/testing> setenv CLASSPATH 
> /export/home/tmp/devel/issue/802/trunk/classes/:/export/home/tmp/devel/issue/802/trunk/tools/java/junit.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/jakarta-oro-2.0.8.jar 
>
> ak136785@khepri35:/<5>802/testing> java 
> org.apache.derbyTesting.functionTests.harness.RunTest 
> tools/sysinfo_api.junit *** Start: sysinfo_api jdk1.4.2_02 2006-07-18 
> 10:36:18 ***
> *** End:   sysinfo_api jdk1.4.2_02 2006-07-18 10:36:24 ***
>
>
> Andreas




Re: sysinfo_api.junit failing in Tinderbox (was: Re: Regression Test Failure! - TinderBox_Derby 422909)

Posted by Andreas Korneliussen <An...@Sun.COM>.
Andrew McIntyre wrote:
> The test below that is reported as failing is the new test introduced
> with DERBY-982, sysinfo_api.junit. This test passes on both my Mac OS
> X and Windows XP system before and after commit. Does anyone have any
> insight as to why the test may be failing in the Tinderbox
> environment?
> 

It failed for me when using jar-files in the classpath, however it 
passed when using classes directory. The tinderbox uses jar-files.


ak136785@khepri35:/<5>802/testing> java 
org.apache.derbyTesting.functionTests.harness.RunTest 
tools/sysinfo_api.junit
*** Start: sysinfo_api jdk1.4.2_02 2006-07-18 10:34:35 ***
0 add
 > .F.F.F.F.
 > There were 4 failures:
 > 1) 
testMajorVersion(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.AssertionFailedError: 
expected:<10> but was:<-1>
 > 2) 
testMinorVersion(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.AssertionFailedError: 
expected:<2> but was:<-1>
 > 3) 
testProductName(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.ComparisonFailure: 
expected:<Apache Derby> but was:<<no name found>>
 > 4) 
testVersionString(org.apache.derbyTesting.functionTests.tests.tools.sysinfo_api)junit.framework.ComparisonFailure: 
expected:<10.2.0.4 alpha> but was:<<no name found>>
 > FAILURES!!!
 > Tests run: 5,  Failures: 4,  Errors: 0
Test Failed.
*** End:   sysinfo_api jdk1.4.2_02 2006-07-18 10:34:41 ***
ak136785@khepri35:/<5>802/testing> env | grep CLASSPA
CLASSPATH=/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyrun.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derby.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyclient.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/junit.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbytools.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbynet.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/junit.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/jakarta-oro-2.0.8.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyTesting.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_de_DE.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_es.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_fr.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_it.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_ja_JP.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_ko_
KR.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_pt_BR.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_zh_CN.jar:/export/home/tmp/devel/issue/802/trunk/jars/sane/derbyLocale_zh_TW.jar:/usr/local/share/java/db2jcc/lib/db2jcc.jar:/usr/local/share/java/db2jcc/lib/db2jcc_license_c.jar
ak136785@khepri35:/<5>802/testing> setenv CLASSPATH 
/export/home/tmp/devel/issue/802/trunk/classes/:/export/home/tmp/devel/issue/802/trunk/tools/java/junit.jar:/export/home/tmp/devel/issue/802/trunk/tools/java/jakarta-oro-2.0.8.jar
ak136785@khepri35:/<5>802/testing> java 
org.apache.derbyTesting.functionTests.harness.RunTest 
tools/sysinfo_api.junit *** Start: sysinfo_api jdk1.4.2_02 2006-07-18 
10:36:18 ***
*** End:   sysinfo_api jdk1.4.2_02 2006-07-18 10:36:24 ***


Andreas