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 33using Sockets, Random, Test
44using Base: Experimental
55
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+
610# set up a watchdog alarm for 10 minutes
711# so that we can attempt to get a "friendly" backtrace if something gets stuck
812# (although this'll also terminate any attempted debugging session)
913# expected test duration is about 5-10 seconds
1014function killjob (d)
1115 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 ())
1221 if Sys. islinux ()
1322 SIGINFO = 10
1423 elseif Sys. isbsd ()
You can’t perform that action at this time.
0 commit comments