tricks to running awt tests on Mac OS X? (original) (raw)

Anthony Petrov anthony.petrov at oracle.com
Tue Nov 6 02:26:13 PST 2012


This particular test was known to not support macosx. The following bug fix covers this issue:

http://bugs.sun.com/view_bug.do?bug_id=7072120

If you encounter any other regression tests in JDK that do not run on Mac, please file bugs at http://bugs.sun.com/.

-- best regards, Anthony

On 11/6/2012 10:02 AM, Ray Kiddy wrote:

Hello -

I downloaded jtreg binaries and am running some of the tests on this machine. It is running 10.7.4. I am having no problems updating the source and building jdk7u-dev. And I can run a lot of the tests with no problems. But AWT tests seem not so cooperative. Is there some trick to running these? It may be a problem that I downloaded the binaries for jtreg. Looking at the build dependencies was giving me a headache. And, at least with java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.sh, the test seems to not know what "Darwin" is? This made me suspect I need a newer jtreg. But this one seemed to be from the official source (i.e. http://download.java.net/openjdk/jtreg/). The full results from this one are below. I am trying to run with, for example: % cd jdk7u-dev _% ../jtreg/linux/bin/jtreg _ _-jdk:build/macosx-x8664/j2sdk-bundle/jdk1.7.0.jdk/Contents/Home _ _-w build/jtreg/test/java/awt/work -r build/jtreg/test/java/awt/report _ -othervm -verbose:summary -ignore:quiet -automatic test/java/awt I was running with -samevm. Now I am not. I added -ignore:quiet and -automatic. These did not do much. If I let the tests run, they take a long time. I cannot see how long the set of tests should take, so I am not sure if they are hung. After a while, there are lots of colored windows hanging around and not much seems to be happening. Sort of like a lava lamp in a cubic universe. Any info about how these test behave when things are passing would be appreciated. cheers - ray

#Test Results (version 2) #Mon Nov 05 14:39:05 PST 2012 #checksum:5402429ff12b0171 #-----testdescription----- $file=/Users/ray/Projects/openjdk/jdk7u-dev/jdk/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.sh $root=/Users/ray/Projects/openjdk/jdk7u-dev/jdk/test author=Dmitry Cherepanov: area=appletviewer keywords=bug6193279 bug6619458 shell run=USERSPECIFIED compile IOExceptionIfEncodedURLTest.java\nUSERSPECIFIED main IOExceptionIfEncodedURLTest\nUSERSPECIFIED shell IOExceptionIfEncodedURLTest.sh\n source=IOExceptionIfEncodedURLTest.sh title=REGRESSION: AppletViewer throws IOException when path is encoded URL #-----environment----- #-----testresult----- description=file:/Users/ray/Projects/openjdk/jdk7u-dev/jdk/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.sh elapsed=2295 0:00:02.295 end=Mon Nov 05 14:39:05 PST 2012 environment=regtest execStatus=Failed. Execution failed: exit code 1 hostname=10.1.10.15 javatestOS=Mac OS X 10.7.4 (x8664) javatestVersion=4.4 jtregVersion=jtreg 4.1 fcs b04 script=com.sun.javatest.regtest.RegressionScript sections=scriptmessages compile build main shell start=Mon Nov 05 14:39:03 PST 2012 test=java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.sh user.name=ray work=/Users/ray/Projects/openjdk/jdk7u-dev/build/jtreg/jdk/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/work/java/awt/appletviewer/IOExceptionIfEncodedURLTest #section:scriptmessages ----------messages:(4/241)---------- JDK under test: (build/macosx-x8664/j2sdk-bundle/jdk1.7.0.jdk/Contents/Home) openjdk version "1.7.0-internal" OpenJDK Runtime Environment (build 1.7.0-internal-ray201209211055-b00) OpenJDK 64-Bit Server VM (build 23.6-b03, mixed mode) #section:compile ----------messages:(3/254)---------- command: compile /Users/ray/Projects/openjdk/jdk7u-dev/jdk/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.java reason: User specified action: run compile IOExceptionIfEncodedURLTest.java elapsed time (seconds): 1.489 ----------System.out:(0/0)---------- ----------System.err:(7/627)---------- /Users/ray/Projects/openjdk/jdk7u-dev/jdk/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.java:35: warning: ParseUtil is internal proprietary API and may be removed in a future release import sun.net.www.ParseUtil; ^ /Users/ray/Projects/openjdk/jdk7u-dev/jdk/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.java:55: warning: ParseUtil is internal proprietary API and may be removed in a future release String path = ParseUtil.fileToEncodedURL(new File(System.getProperty("user.dir"))).getPath(); ^ 2 warnings result: Passed. Compilation successful #section:build ----------messages:(3/112)---------- command: build IOExceptionIfEncodedURLTest reason: Named class compiled on demand elapsed time (seconds): 0.001 result: Passed. All files up to date #section:main ----------messages:(3/141)---------- command: main IOExceptionIfEncodedURLTest reason: User specified action: run main IOExceptionIfEncodedURLTest elapsed time (seconds): 0.416 ----------System.out:(0/0)---------- ----------System.err:(3/248)---------- prior checking... url=file:IOExceptionIfEncodedURLTest.java -> path=/Users/ray/Projects/openjdk/jdk7u-dev/build/jtreg/jdk/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/work/scratch/,filename=IOExceptionIfEncodedURLTest.java STATUS:Passed. result: Passed. Execution successful #section:shell ----------messages:(3/152)---------- command: shell IOExceptionIfEncodedURLTest.sh [] reason: User specified action: run shell IOExceptionIfEncodedURLTest.sh elapsed time (seconds): 0.026 ----------System.out:(3/67)---------- Unrecognized system! Darwin The test failed :-( exit status was 1 ----------System.err:(1/29)---------- Unrecognized system! Darwin result: Failed. Execution failed: exit code 1 test result: Failed. Execution failed: exit code 1



More information about the macosx-port-dev mailing list