10
10
typemax (Csize_t)
11
11
end
12
12
13
+ if haskey (ENV , " JULIA_TEST_EXEFLAGS" )
14
+ const test_exeflags = ` $(Base. shell_split (ENV [" JULIA_TEST_EXEFLAGS" ])) `
15
+ else
16
+ const test_exeflags = ` --check-bounds=yes --startup-file=no --depwarn=error`
17
+ end
18
+
19
+ if haskey (ENV , " JULIA_TEST_EXENAME" )
20
+ const test_exename = ` $(Base. shell_split (ENV [" JULIA_TEST_EXENAME" ])) `
21
+ else
22
+ const test_exename = ` $(joinpath (JULIA_HOME, Base. julia_exename ())) `
23
+ end
24
+
13
25
const node1_tests = String[]
14
26
function move_to_node1 (t)
15
27
if t in tests
@@ -27,7 +39,7 @@ cd(dirname(@__FILE__)) do
27
39
n = 1
28
40
if net_on
29
41
n = min (Sys. CPU_CORES, length (tests))
30
- n > 1 && addprocs (n; exeflags = ` --check-bounds=yes --startup-file=no --depwarn=error ` )
42
+ n > 1 && addprocs (n; exename = test_exename, exeflags = test_exeflags )
31
43
BLAS. set_num_threads (1 )
32
44
end
33
45
@@ -48,7 +60,7 @@ cd(dirname(@__FILE__)) do
48
60
if (isa (resp[end ], Integer) && (resp[end ] > max_worker_rss)) || isa (resp, Exception)
49
61
if n > 1
50
62
rmprocs (p, waitfor= 0.5 )
51
- p = addprocs (1 ; exeflags = ` --check-bounds=yes --startup-file=no --depwarn=error ` )[1 ]
63
+ p = addprocs (1 ; exename = test_exename, exeflags = test_exeflags )[1 ]
52
64
remotecall_fetch (()-> include (" testdefs.jl" ), p)
53
65
else
54
66
# single process testing, bail if mem limit reached, or, on an exception.
0 commit comments