jtreg fails if directory timestamps are 0 (start of Unix epoch)

Martin Buchholz martinrb at google.com
Wed Jan 9 17:46:46 PST 2013


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 


More information about the jtreg-use mailing list