Fwd: Re: JTReg tests results on other ports
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Sep 28 12:26:16 PDT 2011
What is the internal structure of
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home ?
With "standard" JDK, when you run "java" from a JDK, you end up with
java.home set to the JDK/jre directory, and jtreg tries to "undo" that
to get back to the JDK directory to find JDK/bin/javac etc. If the
layout is anything different, jtreg may get confused.
-- Jon
On 09/28/2011 12:14 PM, Henri Gomez wrote:
> More on this
>
> While testing langtools I noticed
>
> #section:shell
> ----------messages:(3/103)----------
> command: shell apt.sh []
> reason: User specified action: run shell apt.sh
> elapsed time (seconds): 0.01
> ----------System.out:(1/20)----------
> Compilation failed.
> ----------System.err:(1/248)----------
> /Users/henri/Documents/jenkins/data/jobs/openjdk-1.7-macosx-universal/workspace/langtools/test/tools/apt/Basics/apt.sh:
> line 65: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/1.7.0.jre/Contents/Home/bin/javac:
> No such file or directory
> result: Failed. Execution failed: exit code 1
>
>
> test result: Failed. Execution failed: exit code 1
>
>
> What's strange is I provided
> /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home as jdk home
> and not /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/1.7.0.jre/Contents/Home
>
> 2011/9/28 Henri Gomez<henri.gomez at gmail.com>:
>> Following Taras recommendation I updated my test like this :
>>
>> Using absolute jdk path instead of relative and much more tests passes now :
>>
>> /Users/henri/Documents/jenkins/data/DROP_DIR/jtreg/linux/bin/jtreg
>> -jdk:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/
>> -ignore:quiet -v:summary test/java/lang
>>
>> ....
>>
>> Passed: java/lang/Compare.java
>> Passed: java/lang/HashCode.java
>> Passed: java/lang/ToString.java
>> Test results: passed: 346; failed: 25; error: 7
>> Report written to
>> /Users/henri/Documents/jenkins/data/jobs/openjdk-1.7-macosx-universal/workspace/jdk/JTreport/html/report.html
>> Results written to
>> /Users/henri/Documents/jenkins/data/jobs/openjdk-1.7-macosx-universal/workspace/jdk/JTwork
>> Error: Some tests failed or other problems occurred.
>>
>> ....
>>
>> There is still errors, related to javac :
>>
>> ./JTwork/java/lang/ClassLoader/deadlock/TestCrossDelegate.jtr
>>
>>
>> #section:script_messages
>> ----------messages:(4/215)----------
>> JDK under test: (/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home)
>> openjdk version "1.7.0-b147"
>> OpenJDK Runtime Environment (build 1.7.0-b147-20110928)
>> OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
>>
>> #section:shell
>> ----------messages:(3/144)----------
>> command: shell TestCrossDelegate.sh []
>> reason: User specified action: run shell/timeout=300 TestCrossDelegate.sh
>> elapsed time (seconds): 0.009
>> ----------System.out:(4/338)----------
>> TESTSRC=/Users/henri/Documents/jenkins/data/jobs/openjdk-1.7-macosx-universal/workspace/jdk/test/java/lang/ClassLoader/deadlock
>> TESTCLASSES=/Users/henri/Documents/jenkins/data/jobs/openjdk-1.7-macosx-universal/workspace/jdk/JTwork/classes/java/lang/ClassLoader/deadlock
>> TESTJAVA=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
>>
>> ----------System.err:(1/244)----------
>> /Users/henri/Documents/jenkins/data/jobs/openjdk-1.7-macosx-universal/workspace/jdk/test/java/lang/ClassLoader/deadlock/TestCrossDelegate.sh:
>> line 70: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Homebinjavac:
>> No such file or directory
>> result: Failed. Execution failed: exit code 127
>>
>>
>> test result: Failed. Execution failed: exit code 127
>>
More information about the macosx-port-dev
mailing list