File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 3
3
using Sockets, Random, Test
4
4
using Base: Experimental
5
5
6
+ # This is for debugging only - if the system doesn't have `netstat`, we just ignore it
7
+ netstat () = try ; read (ignorestatus (` netstat -ndi` ), String); catch ; return " " ; end
8
+ const netstat_before = netstat ()
9
+
6
10
# set up a watchdog alarm for 10 minutes
7
11
# so that we can attempt to get a "friendly" backtrace if something gets stuck
8
12
# (although this'll also terminate any attempted debugging session)
9
13
# expected test duration is about 5-10 seconds
10
14
function killjob (d)
11
15
Core. print (Core. stderr , d)
16
+ Core. print (Core. stderr , " Netstat before:\n " )
17
+ Core. print (Core. stderr , netstat_before)
18
+ Core. print (Core. stderr , " \n Netstat after:\n " )
19
+ # This might fail if we're in a bad libuv state
20
+ Core. print (Core. stderr , netstat ())
12
21
if Sys. islinux ()
13
22
SIGINFO = 10
14
23
elseif Sys. isbsd ()
You can’t perform that action at this time.
0 commit comments