File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2023, Alibaba Group Holding Limited. All Rights Reserved.
2
+ * Copyright (c) 2023, 2025, Alibaba Group Holding Limited. All Rights Reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
26
26
* @bug 8312065
27
27
* @summary Socket.connect does not timeout as expected when profiling (i.e. keep receiving signal)
28
28
* @requires (os.family != "windows")
29
+ * @library /test/lib
30
+ * @build jtreg.SkippedException
29
31
* @compile NativeThread.java
30
32
* @run main/othervm/native/timeout=120 B8312065
31
33
*/
37
39
import java .net .SocketTimeoutException ;
38
40
import java .util .concurrent .TimeUnit ;
39
41
42
+ import jtreg .SkippedException ;
43
+
40
44
public class B8312065 {
41
45
public static void main (String [] args ) throws Exception {
42
46
System .loadLibrary ("NativeThread" );
@@ -83,6 +87,8 @@ public static void main(String[] args) throws Exception {
83
87
System .out .println ("Test FAILED: duration " + duration + " ms, expected >= " + timeoutMillis + " ms" );
84
88
System .exit (1 );
85
89
}
90
+ } catch (java .net .ConnectException e ) {
91
+ throw new SkippedException ("Network setup issue, skip this test" , e );
86
92
}
87
93
}
88
94
}
You can’t perform that action at this time.
0 commit comments