Skip to content

Commit d41a269

Browse files
bors[bot]fingolfinKristofferC
committedNov 6, 2018
Merge #870
870: Transfer can_inline to subprocess r=KristofferC a=fingolfin This is meant as an alternative to PR #866 for resolving issue #865 Co-authored-by: Max Horn <[email protected]> Co-authored-by: Kristoffer Carlsson <[email protected]>
2 parents 540decb + 73155d3 commit d41a269

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎src/Operations.jl

+1
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,7 @@ function test(ctx::Context, pkgs::Vector{PackageSpec}; coverage=false)
13331333
--color=$(Base.have_color ? "yes" : "no")
13341334
--compiled-modules=$(Bool(Base.JLOptions().use_compiled_modules) ? "yes" : "no")
13351335
--check-bounds=yes
1336+
--inline=$(Bool(Base.JLOptions().can_inline) ? "yes" : "no")
13361337
--startup-file=$(Base.JLOptions().startupfile == 1 ? "yes" : "no")
13371338
--track-allocation=$(("none", "user", "all")[Base.JLOptions().malloc_log + 1])
13381339
--eval $code

‎src/Pkg.jl

+2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ passing `coverage=true`. The default behavior is not to run coverage.
150150
151151
The tests are executed in a new process with `check-bounds=yes` and by default `startup-file=no`.
152152
If using the startup file (`~/.julia/config/startup.jl`) is desired, start julia with `--startup-file=yes`.
153+
Inlining of functions during testing can be disabled (for better coverage accuracy)
154+
by starting julia with `--inline=no`.
153155
"""
154156
const test = API.test
155157

0 commit comments

Comments
 (0)
Please sign in to comment.