@@ -13,6 +13,15 @@ include("testenv.jl")
13
13
tests, net_on, exit_on_error, use_revise, seed = choosetests (ARGS )
14
14
tests = unique (tests)
15
15
16
+ if Sys. islinux ()
17
+ const SYS_rrcall_check_presence = 1008
18
+ global running_under_rr () = 0 == ccall (:syscall , Int,
19
+ (Int, Int, Int, Int, Int, Int, Int),
20
+ SYS_rrcall_check_presence, 0 , 0 , 0 , 0 , 0 , 0 )
21
+ else
22
+ global running_under_rr () = false
23
+ end
24
+
16
25
if use_revise
17
26
using Revise
18
27
union! (Revise. stdlib_names, Symbol .(STDLIBS))
@@ -137,17 +146,22 @@ cd(@__DIR__) do
137
146
finally
138
147
unlock (print_lock)
139
148
end
149
+ nothing
140
150
end
141
151
142
152
global print_testworker_started = (name, wrkr)-> begin
153
+ pid = running_under_rr () ? remotecall_fetch (getpid, wrkr) : 0
154
+ at = lpad (" ($wrkr )" , name_align - textwidth (name) + 1 , " " )
143
155
lock (print_lock)
144
156
try
145
- printstyled (name, color= :white )
146
- printstyled (lpad (" ($wrkr )" , name_align - textwidth (name) + 1 , " " ), " |" ,
147
- " " ^ elapsed_align, " started at $(now ()) \n " , color= :white )
157
+ printstyled (name, at, " |" , " " ^ elapsed_align,
158
+ " started at $(now ()) " ,
159
+ (pid > 0 ? " on pid $pid " : " " ),
160
+ " \n " , color= :white )
148
161
finally
149
162
unlock (print_lock)
150
163
end
164
+ nothing
151
165
end
152
166
153
167
function print_testworker_errored (name, wrkr, @nospecialize (e))
0 commit comments