Skip to content

Commit

Permalink
fix unit test to match actual testbench tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Nov 22, 2024
1 parent c1564d2 commit 13702f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/xous-bio-bdma/src/bio_tests/units.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,11 @@ pub fn host_fifo_tests() -> usize {
//
// finally, we're pegged at 15, because, backpressure caused us to miss the rest of
// the entries, and we are stuck at the final written value of the output test
print!("rbk: {:x}\r", rbk);
if i <= 9 {
assert!(rbk == !(0xF1F0_0000 + i));
assert!(rbk == (0xF1F0_0000 + i));
} else {
assert!(rbk == !(0xF1F0_0000 + 15));
assert!(rbk == (0xF1F0_0000 + 15));
}
print!("backpressure {:x}\r", rbk);
}
Expand Down

0 comments on commit 13702f2

Please sign in to comment.