Hi all,

I think use `@requires (os.family == "windows")` is more elegrant than thow 
jtreg.SkippedException in test java/io/File/MaxPath.java.

On linux before this PR, run this test jtreg report:


TEST: java/io/File/MaxPath.java
TEST RESULT: Passed. Skipped: jtreg.SkippedException: This test is run only on 
Windows


On linux after this PR, run this test jtreg report:


Test results: no tests selected


Change has been verified locally both on linux and windows, test-fix only, no 
risk.

-------------

Commit messages:
 - 8359182: Use @requires instead of SkippedException for MaxPath.java

Changes: https://git.openjdk.org/jdk/pull/25742/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25742&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8359182
  Stats: 8 lines in 1 file changed: 0 ins; 7 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/25742.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25742/head:pull/25742

PR: https://git.openjdk.org/jdk/pull/25742

Reply via email to