Skip to content

Commit 547e6d2

Browse files
committed
Auto merge of #11091 - weihanglo:ignore-test-on-release-mode-master, r=epage
[master] Run `reach_max_unpack_size` test only on debug build `cargo test --release` fails on test `reach_max_unpack_size` as the binary to exercise is optimized. The alternative approach is removing `cfg!(debug_assertions)` from this line. <https://github.com/rust-lang/cargo/blob/9ef926dafc217bf4ab781ea2d9bbd029359bd241/src/cargo/sources/registry/mod.rs#L842> #11089
2 parents aaadab6 + 22ac249 commit 547e6d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testsuite/registry.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,6 +2698,8 @@ fn http_requires_trailing_slash() {
26982698
.run()
26992699
}
27002700

2701+
// Limit the test to debug builds so that `__CARGO_TEST_MAX_UNPACK_SIZE` will take affect.
2702+
#[cfg(debug_assertions)]
27012703
#[cargo_test]
27022704
fn reach_max_unpack_size() {
27032705
let p = project()

0 commit comments

Comments
 (0)