Skip to content

Commit

Permalink
mm: Add unit tests for kernel mapping
Browse files Browse the repository at this point in the history
Add unit tests to evaluate offline correct behavior of memory components:
kernel mappings (address_space.rs).

Signed-off-by: Carlos Bilbao <carlos.bilbao@amd.com>
  • Loading branch information
Zildj1an committed Nov 30, 2023
1 parent 1e27af6 commit 898e828
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mm/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ pub fn writable_phys_addr(paddr: PhysAddr) -> bool {
}

#[cfg(test)]
#[cfg_attr(test_in_svsm, ignore = "Offline testing")]
mod tests {
use super::*;
use crate::address::PhysAddr;
Expand Down

0 comments on commit 898e828

Please sign in to comment.