RFR: 8319938: com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel" [v2]
Abhishek Kumar
abhiscxk at openjdk.org
Thu Nov 23 11:56:12 UTC 2023
On Thu, 23 Nov 2023 11:01:44 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>>> How does it fail? Is it because `System.getProperty(".")` returns `null`? The property `"."` doesn't exist, does it?
>>
>> No, temp files and directories are created in `scratch` directory. But the files gets deselected after selection which returns as no file selected and test failed.
>
>> But the files gets deselected after selection which returns as no file selected and test failed.
>
> How is it? It sounds like magic… The working directory shouldn't matter; if it does, the test isn't as stable as it should be.
Surprise to me also. It failed every single time when temporary files are created in `scratch`.
>The test isn't as stable as it should be.
Unable to trace what is missing in the test.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16674#discussion_r1403282851
More information about the client-libs-dev
mailing list