river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Firmstone <j...@zeus.net.au>
Subject Failing jtreg tests
Date Wed, 21 Jul 2010 04:13:10 GMT
One of the tests that has failed is a GrantPermission test, that checks 
that an UnresolvedPermission, doesn't imply or equal its unresolved 
counterpart, in this case FooPermission, however the 
UnresolvedPermission appears to rely on the inability of GrantPermission 
to resolve a class by Class.forName(String), the test appears to make 
the assumption that the class will not be resolved, without checking 
it.  Since GrantPermission, used to be loaded by the Extension 
ClassLoader, this was true, however this is no longer true, it's now 
loaded by the same ClassLoader as the test, causing the failure, I'll 
update the test to use UnresolvedPermission instances shortly.

Not sure why the httpmd URL test failed, but returned equals() true for 
two URL's with the same archive, same md hash, but different domain's

The other test failures I experienced were expected due to the missing 
Squid Proxy and Kerberos Key server.

=================================================================================================

#Test Results (version 2)
#Wed Jul 21 11:26:54 EST 2010
#checksum:573ade25ad3049
#-----testdescription-----
$file=/opt/src/ApacheRiver/trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java
$root=/opt/src/ApacheRiver/trunk/qa/jtreg
keywords=othervm
library=../../../../unittestlib
run=USER_SPECIFIED build UnitTestUtilities BasicTest 
Test\nUSER_SPECIFIED main/othervm 
-Djava.protocol.handler.pkgs=net.jini.url TestEqual\n
source=TestEqual.java
title=Tests equal on httpmd: URLs

#-----environment-----

#-----testresult-----
description=file:/opt/src/ApacheRiver/trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java
end=Wed Jul 21 11:26:54 EST 2010
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: 
Test$FailedException: 1 test failure
javatestOS=SunOS 5.10 (sparc)
javatestVersion=4.1.3a
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages build compile build compile main
start=Wed Jul 21 11:26:41 EST 2010
test=net/jini/url/httpmd/TestEqual.java
work=/opt/src/ApacheRiver/trunk/qa/jtreg/JTwork/net/jini/url/httpmd

#section:script_messages
----------messages:(4/193)----------
JDK under test: (/usr/jdk/jdk1.5.0_15)
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)

#section:build
----------messages:(3/151)----------
command: build UnitTestUtilities BasicTest Test
reason: User specified action: run build UnitTestUtilities BasicTest Test
elapsed time (seconds): 5.4
result: Passed. Build successful

#section:compile
----------messages:(3/385)----------
command: compile 
/opt/src/ApacheRiver/trunk/qa/jtreg/net/jini/url/httpmd/../../../../unittestlib/UnitTestUtilities.java

/opt/src/ApacheRiver/trunk/qa/jtreg/net/jini/url/httpmd/../../../../unittestlib/BasicTest.java

/opt/src/ApacheRiver/trunk/qa/jtreg/net/jini/url/httpmd/../../../../unittestlib/Test.java
reason: .class file out of date or does not exist
elapsed time (seconds): 5.397
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:build
----------messages:(3/94)----------
command: build TestEqual
reason: Named class compiled on demand
elapsed time (seconds): 4.809
result: Passed. Build successful

#section:compile
----------messages:(3/168)----------
command: compile 
/opt/src/ApacheRiver/trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java
reason: .class file out of date or does not exist
elapsed time (seconds): 4.808
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:main
----------messages:(3/197)----------
command: main -Djava.protocol.handler.pkgs=net.jini.urlTestEqual
reason: User specified action: run main/othervm 
-Djava.protocol.handler.pkgs=net.jini.url TestEqual
elapsed time (seconds): 2.662
----------System.out:(11/264)----------

*** Start test: Wed Jul 21 11:26:53 EST 2010
Test 9: TestEqual: httpmd://foo:88/bar/baz;p1=v1;md5=abcd?q#r, 
httpmd://alpha:88/bar/baz;p1=v1;md5=abcd?q#r
FAIL: Should be: false
Result: true

*** Test results:
*** PASS: 39
*** FAIL: 1
*** Time: 270 ms

----------System.err:(14/730)----------
Test$FailedException: 1 test failure
at UnitTestUtilities.test(UnitTestUtilities.java:117)
at TestEqual.main(TestEqual.java:154)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:595)

JavaTest Message: Test threw exception: Test$FailedException: 1 test failure
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: Test$FailedException: 1 test failure
result: Failed. Execution failed: `main' threw exception: 
Test$FailedException: 1 test failure


test result: Failed. Execution failed: `main' threw exception: 
Test$FailedException: 1 test failure

==================================================================================================================

#Test Results (version 2)
#Wed Jul 21 11:24:08 EST 2010
#checksum:3624138edffd0fa2
#-----testdescription-----
$file=/opt/src/ApacheRiver/trunk/qa/jtreg/net/jini/security/GrantPermission/implies/Test.java
$root=/opt/src/ApacheRiver/trunk/qa/jtreg
run=ASSUMED_ACTION main Test\n
source=Test.java
title=Verify proper functioning of GrantPermission.implies() and equals()

#-----environment-----

#-----testresult-----
description=file:/opt/src/ApacheRiver/trunk/qa/jtreg/net/jini/security/GrantPermission/implies/Test.java
end=Wed Jul 21 11:24:08 EST 2010
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: java.lang.Error
javatestOS=SunOS 5.10 (sparc)
javatestVersion=4.1.3a
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages build compile main
start=Wed Jul 21 11:24:03 EST 2010
test=net/jini/security/GrantPermission/implies/Test.java
work=/opt/src/ApacheRiver/trunk/qa/jtreg/JTwork/net/jini/security/GrantPermission/implies

#section:script_messages
----------messages:(4/193)----------
JDK under test: (/usr/jdk/jdk1.5.0_15)
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)

#section:build
----------messages:(3/89)----------
command: build Test
reason: Named class compiled on demand
elapsed time (seconds): 4.525
result: Passed. Build successful

#section:compile
----------messages:(3/185)----------
command: compile 
/opt/src/ApacheRiver/trunk/qa/jtreg/net/jini/security/GrantPermission/implies/Test.java
reason: .class file out of date or does not exist
elapsed time (seconds): 4.521
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:main
----------messages:(3/107)----------
command: main Test
reason: Assumed action based on file name: run main Test
elapsed time (seconds): 1.039
----------System.out:(0/0)----------
----------System.err:(13/601)----------
java.lang.Error
at Test.main(Test.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:595)

JavaTest Message: Test threw exception: java.lang.Error
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Error
result: Failed. Execution failed: `main' threw exception: java.lang.Error


test result: Failed. Execution failed: `main' threw exception: 
java.lang.Error


Mime
View raw message