8220793: (fs) No support for changing modification time of symlink

Roger Riggs Roger.Riggs at oracle.com
Thu May 2 15:23:21 UTC 2019


Hi,

How about throwing the SkippedException so it shows up in the jtreg 
summaries as such. [1]

Roger

[1] 
http://openjdk.java.net/jtreg/faq.html#what-if-a-test-does-not-apply-in-a-given-situation


On 05/02/2019 11:10 AM, Alan Bateman wrote:
> On 02/05/2019 16:03, Brian Burkhalter wrote:
>>
>> --- a/test/jdk/java/nio/file/Files/SymlinkTime.java
>> +++ b/test/jdk/java/nio/file/Files/SymlinkTime.java
>> @@ -41,6 +41,12 @@
>>  public class SymlinkTime {
>>      public static void main(String[] args) throws IOException {
>>          Path dir = TestUtil.createTemporaryDirectory();
>> +        if (System.getProperty("os.name").startsWith("Windows") &&
>> +            !TestUtil.supportsLinks(dir)) {
>> +            System.out.println("Windows: links not supported - 
>> skipping test");
>> +            return;
>> +        }
>> +
>>
> Yes but no need to check os.name. You'll see examples in other tests.
>
> -Alan



More information about the nio-dev mailing list