Skip to content

Commit

Permalink
Feature gate some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Nov 19, 2024
1 parent 7011177 commit b2c37a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/postcard/src/accumulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ mod test {
}

#[test]
#[cfg(feature = "heapless")]
fn double_loop_test() {
#[derive(serde::Serialize, Deserialize, Debug, PartialEq, Eq)]
struct Demo {
Expand Down Expand Up @@ -252,6 +253,7 @@ mod test {
}

#[test]
#[cfg(feature = "heapless")]
fn loop_test_ref() {
#[derive(serde::Serialize, Deserialize, Debug, PartialEq, Eq)]
struct Demo<'a> {
Expand Down Expand Up @@ -285,6 +287,7 @@ mod test {
}

#[test]
#[cfg(feature = "heapless")]
fn double_loop_test_ref() {
#[derive(serde::Serialize, Deserialize, Debug, PartialEq, Eq)]
struct Demo<'a> {
Expand Down Expand Up @@ -344,6 +347,7 @@ mod test {
}

#[test]
#[cfg(feature = "heapless")]
fn extend_unchecked_in_bounds_test() {
// Test bug present in revision abcb407:
// extend_unchecked may be passed slice with size 1 greater than accumulator buffer causing panic
Expand Down

0 comments on commit b2c37a2

Please sign in to comment.