Skip to content

Commit 4e8deb3

Browse files
SendaoYandjelinski
authored andcommitted
8332922: Test java/io/IO/IO.java fails when /usr/bin/expect not exist
Reviewed-by: djelinski
1 parent 08d5100 commit 4e8deb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/java/io/IO/IO.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
import jdk.test.lib.process.OutputAnalyzer;
3131
import jdk.test.lib.process.ProcessTools;
32-
import jtreg.SkippedException;
32+
import org.junit.jupiter.api.Assumptions;
3333
import org.junit.jupiter.api.BeforeAll;
3434
import org.junit.jupiter.api.Nested;
3535
import org.junit.jupiter.api.condition.EnabledOnOs;
@@ -60,7 +60,7 @@ public class OSSpecificTests {
6060
public static void prepareTTY() {
6161
expect = Paths.get("/usr/bin/expect"); // os-specific path
6262
if (!Files.exists(expect) || !Files.isExecutable(expect)) {
63-
throw new SkippedException("'" + expect + "' not found");
63+
Assumptions.abort("'" + expect + "' not found");
6464
}
6565
}
6666

0 commit comments

Comments
 (0)