Skip to content

Commit 9265010

Browse files
committed
use the same value of --check-bounds as the process (#4494)
1 parent 87b8c73 commit 9265010

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Pkg v1.13 Release Notes
22
=======================
33

4+
- `Pkg.test` now respects the `--check-bounds` setting from the parent Julia session instead of forcing `--check-bounds=yes`.
5+
46
- Project.toml environments now support a `readonly` field to mark environments as read-only, preventing modifications.
57
([#4284])
68
- `Pkg.build` now supports an `allow_reresolve` keyword argument to control whether the build process can re-resolve

src/Operations.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2595,7 +2595,6 @@ function gen_subprocess_flags(source_path::String; coverage, julia_args::Cmd)
25952595
return ```
25962596
--code-coverage=$(coverage_arg)
25972597
--color=$(Base.have_color === nothing ? "auto" : Base.have_color ? "yes" : "no")
2598-
--check-bounds=yes
25992598
--warn-overwrite=yes
26002599
--depwarn=$(Base.JLOptions().depwarn == 2 ? "error" : "yes")
26012600
--inline=$(Bool(Base.JLOptions().can_inline) ? "yes" : "no")

src/Pkg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
390390
test = ["Test"]
391391
```
392392
393-
The tests are executed in a new process with `check-bounds=yes` and by default `startup-file=no`.
393+
The tests are executed in a new process with the same `check-bounds` setting as the current Julia session and by default `startup-file=no`.
394394
If using the startup file (`~/.julia/config/startup.jl`) is desired, start julia with `--startup-file=yes`.
395395
396396
Inlining of functions during testing can be disabled (for better coverage accuracy)

0 commit comments

Comments
 (0)