From Alan.Bateman at oracle.com Mon Jan 7 05:36:29 2013 From: Alan.Bateman at oracle.com (Alan Bateman) Date: Mon, 07 Jan 2013 13:36:29 +0000 Subject: Does -javacoptions do what it says on the tin? Message-ID: <50EACF5D.6080904@oracle.com> I have a build of jdk8/profiles, both images and profiles build targets. I'd like to run the jdk tests on compact1 image so I'm running jtreg with -jdk set to a compact1 image, -compilejdk set to the JDK image, and -javacoptions:"-profile compact1" so that I should get compilation failures on any tests that have static dependencies beyond compact1. From what I can see then this mostly works but there are cases where the javac options don't appear to be used. I'm seeing ClassNotFoundException at runtime where I would not have expected the test to compile. I think, but not 100% sure, that it's tests that have @compile tag. For example, we have tests that have "-source 1.4" in the @compile tag and I would expect those tests not to compile. So I guess my question for now is whether -javacoptions is intended to supplement the options specified to @compile or not? -Alan From martinrb at google.com Wed Jan 9 17:20:59 2013 From: martinrb at google.com (Martin Buchholz) Date: Wed, 9 Jan 2013 17:20:59 -0800 Subject: jtreg fails if directory timestamps are 0 (start of Unix epoch) Message-ID: Hey, This is a cute bug (maybe a bug in java.io or jtreg or jtharness; not sure). $ perl -e 'utime 0, 0, "java/lang/String"' && ls -ld java/lang/String && ~/jct-tools/jtreg-4.1-b5/linux/bin/jtreg java/lang/String/IsEmpty.java drwxr-x--- 2 martinrb eng 4096 Dec 31 1969 java/lang/String Error: Bad parameters specified: The following path does not identify a valid test or folder of tests: java/lang/String/IsEmpty.java jdk/test $ touch java/lang/String && ls -ld java/lang/String && ~/jct-tools/jtreg-4.1-b5/linux/bin/jtreg java/lang/String/IsEmpty.java drwxr-x--- 2 martinrb eng 4096 Jan 9 17:19 java/lang/String Test results: passed: 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20130109/447bd8c6/attachment.html From jonathan.gibbons at oracle.com Wed Jan 9 17:41:17 2013 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Wed, 09 Jan 2013 17:41:17 -0800 Subject: jtreg fails if directory timestamps are 0 (start of Unix epoch) In-Reply-To: References: Message-ID: <50EE1C3D.9020107@oracle.com> On 01/09/2013 05:20 PM, Martin Buchholz wrote: > Hey, > > This is a cute bug (maybe a bug in java.io or jtreg > or jtharness; not sure). > > $ perl -e 'utime 0, 0, "java/lang/String"' && ls -ld java/lang/String > && ~/jct-tools/jtreg-4.1-b5/linux/bin/jtreg java/lang/String/IsEmpty.java > drwxr-x--- 2 martinrb eng 4096 Dec 31 1969 java/lang/String > Error: Bad parameters specified: The following path does not identify > a valid test or folder of tests: > java/lang/String/IsEmpty.java > > jdk/test $ touch java/lang/String && ls -ld java/lang/String && > ~/jct-tools/jtreg-4.1-b5/linux/bin/jtreg java/lang/String/IsEmpty.java > drwxr-x--- 2 martinrb eng 4096 Jan 9 17:19 java/lang/String > Test results: passed: 1 > How did you trip over that one? -- Jon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20130109/32986126/attachment.html From martinrb at google.com Wed Jan 9 17:46:46 2013 From: martinrb at google.com (Martin Buchholz) Date: Wed, 9 Jan 2013 17:46:46 -0800 Subject: jtreg fails if directory timestamps are 0 (start of Unix epoch) In-Reply-To: <50EE1C3D.9020107@oracle.com> References: <50EE1C3D.9020107@oracle.com> Message-ID: On Wed, Jan 9, 2013 at 5:41 PM, Jonathan Gibbons < jonathan.gibbons at oracle.com> wrote: > On 01/09/2013 05:20 PM, Martin Buchholz wrote: > > Hey, > > This is a cute bug (maybe a bug in java.io or jtreg or jtharness; not > sure). > > $ perl -e 'utime 0, 0, "java/lang/String"' && ls -ld java/lang/String && > ~/jct-tools/jtreg-4.1-b5/linux/bin/jtreg java/lang/String/IsEmpty.java > drwxr-x--- 2 martinrb eng 4096 Dec 31 1969 java/lang/String > Error: Bad parameters specified: The following path does not identify a > valid test or folder of tests: > java/lang/String/IsEmpty.java > > jdk/test $ touch java/lang/String && ls -ld java/lang/String && > ~/jct-tools/jtreg-4.1-b5/linux/bin/jtreg java/lang/String/IsEmpty.java > drwxr-x--- 2 martinrb eng 4096 Jan 9 17:19 java/lang/String > Test results: passed: 1 > > > How did you trip over that one? > Some of us (and our filesystems) like to live in the past. 1969 was a pretty good year. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20130109/1c53ecaa/attachment.html