The test fails for JFileChooser selection mode set to `DIRECTORIES_ONLY`. For 
`DIRECTORIES_ONLY `mode, there may not be any directories in home directory and 
due to that test failed. Added the code to create temporary directories and 
files for the test.
Tested the current change on the machine it failed for multiple times, no 
failure observed.
CI link attached in JBS.

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

Commit messages:
 - Test fix

Changes: https://git.openjdk.org/jdk/pull/16674/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16674&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8319938
  Stats: 63 lines in 1 file changed: 37 ins; 17 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/16674.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16674/head:pull/16674

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

Reply via email to