RFR: 8303911: [testbug] Some unit tests call System.exit
Andy Goryachev
angorya at openjdk.org
Wed Apr 19 19:26:53 UTC 2023
On Wed, 19 Apr 2023 18:15:40 GMT, Lukasz Kostyra <lkostyra at openjdk.org> wrote:
> Changes added to this commit resolve cases where `System.exit()` was used to leave tests abruptly. These tests, if System.exit() is hit, could potentially create some unwanted behavior from JTest (ex. silently skipping these tests instead of failing them).
>
> There were some files which I did not modify, mostly because they were a part of a test sub-app, or tests would require major rework to make it work.
>
> Two FXML tests were performance tests already written as separate apps, so I moved them to appropriate directory in tests/performance.
tests/system/src/test/java/test/com/sun/javafx/image/impl/ImageRaceTest.java line 129:
> 127: verbose = true;
> 128: } else {
> 129: fail("Unrecognized argument: "+arg);
maybe add spaces: "_+_arg
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1101#discussion_r1171766421
More information about the openjfx-dev
mailing list