Skip to content

Commit 2477adf

Browse files
committed
incorporated the same fix from 8332922
1 parent 5bd519e commit 2477adf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/java/io/Console/RestoreEchoTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232

3333
import jdk.test.lib.process.OutputAnalyzer;
3434
import jdk.test.lib.process.ProcessTools;
35-
import jtreg.SkippedException;
3635

36+
import org.junit.jupiter.api.Assumptions;
3737
import org.junit.jupiter.api.Test;
3838
import org.junit.jupiter.api.condition.EnabledOnOs;
3939
import org.junit.jupiter.api.condition.OS;
@@ -57,7 +57,7 @@ public void testRestoreEcho() throws Throwable {
5757
// check "expect" command availability
5858
var expect = Paths.get("/usr/bin/expect");
5959
if (!Files.exists(expect) || !Files.isExecutable(expect)) {
60-
throw new SkippedException("'" + expect + "' not found");
60+
Assumptions.abort("'" + expect + "' not found");
6161
}
6262

6363
expectRunner("false");

0 commit comments

Comments
 (0)