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

Reply via email to