Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ jobs:
rustup override set nightly
cargo miri setup
- name: Test with Miri Stack Borrows
run: cargo miri test
run: cargo miri test --features global
- name: Test with Miri Tree Borrows
run: cargo miri test
run: cargo miri test --features global
env:
MIRIFLAGS: -Zmiri-tree-borrows
2 changes: 1 addition & 1 deletion tests/global.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![cfg(feature = "global")]
extern crate dlmalloc;

use std::collections::HashMap;
use std::thread;

#[global_allocator]
#[cfg(feature = "global")]
static A: dlmalloc::GlobalDlmalloc = dlmalloc::GlobalDlmalloc;

#[test]
Expand Down
1 change: 1 addition & 0 deletions tests/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fn smoke() {
mod fuzz;

#[test]
#[cfg(feature = "global")]
fn stress() {
let mut rng = SmallRng::seed_from_u64(0);
let mut buf = vec![0; 4096];
Expand Down
Loading