Skip to content

Commit

Permalink
[eclipse-iceoryx#213] Introduce test feature in iceoryx-bb for bump_a…
Browse files Browse the repository at this point in the history
…llocator
  • Loading branch information
xieyuschen committed Oct 16, 2024
1 parent 558c727 commit 03821e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion iceoryx2-bb/container/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ version = { workspace = true }

[dependencies]
iceoryx2-bb-derive-macros = { workspace = true }
iceoryx2-bb-elementary = { workspace = true }
iceoryx2-bb-elementary = { workspace = true , features = ["iox2-test"]}
iceoryx2-bb-log = { workspace = true }
iceoryx2-pal-concurrency-sync = { workspace = true }
serde = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions iceoryx2-bb/elementary/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ iceoryx2-bb-testing = { workspace = true }

generic-tests = { workspace = true }

[features]
iox2-test = []
2 changes: 2 additions & 0 deletions iceoryx2-bb/elementary/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ pub mod enum_gen;
/// A strong type that represents the alignment part of [`std::alloc::Layout`]
pub mod alignment;
pub mod allocator;

#[cfg(any(test, feature = "iox2-test"))]
pub mod bump_allocator;
pub mod lazy_singleton;
pub mod math;
Expand Down

0 comments on commit 03821e9

Please sign in to comment.