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

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


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 


More information about the jtreg-use mailing list