Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wenyuzhao committed Jun 28, 2024
1 parent 7a1521f commit a854009
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- name: Test (Debug)
run: cargo test
- name: Test (Release)
run: cargo test --release
run: cargo test --release --features malloc
5 changes: 4 additions & 1 deletion mallockit/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ pub fn plan(_attr: TokenStream, item: TokenStream) -> TokenStream {

#[cfg(test)]
mod tests {
#(#tests)*
#[cfg(feature = "malloc")]
mod malloc {
#(#tests)*
}
::mallockit::rust_allocator_tests!(crate::Global);
}
};
Expand Down

0 comments on commit a854009

Please sign in to comment.