RFR: 8332922: Test java/io/IO/IO.java fails when /usr/bin/expect not exist
SendaoYan
syan at openjdk.org
Sun May 26 03:03:26 UTC 2024
Hi all,
When there is no `/usr/bin/expect` in system, `throw new SkippedException` will not make the jvm exit in `@BeforeAll` junit stage, thus this will cause this testcase run failed. So I make change from `throw new SkippedException` to `System.exit` to avoid this issue. When use `System.exit`, I think we should use `othervm` mode in jtreg.
Only change the testcase, the risk is low.
Thanks.
-------------
Commit messages:
- 8332922: Test java/io/IO/IO.java fails when /usr/bin/expect not exist
Changes: https://git.openjdk.org/jdk/pull/19403/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19403&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8332922
Stats: 4 lines in 1 file changed: 2 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/19403.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/19403/head:pull/19403
PR: https://git.openjdk.org/jdk/pull/19403
More information about the core-libs-dev
mailing list