Skip to content

Commit 1a888c3

Browse files
committed
fix test
Signed-off-by: Simon Davies <[email protected]>
1 parent 9fc3cc9 commit 1a888c3

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/hyperlight_host/src/mem/linux_dirty_page_tracker.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,16 +1280,13 @@ mod tests {
12801280
let tracker_data = trackers.get(&tracker1.id).unwrap();
12811281
assert_eq!(tracker_data.val().pid, current_pid);
12821282

1283-
// In debug/test mode, creating an overlapping tracker with the same PID should fail
1284-
#[cfg(any(debug_assertions, test))]
1285-
{
1286-
let overlap_result = create_test_tracker(addr + PAGE_SIZE, PAGE_SIZE * 2);
1287-
assert!(
1288-
overlap_result.is_err(),
1289-
"Creating overlapping tracker in same process should fail"
1290-
);
1291-
}
1292-
1283+
// Creating an overlapping tracker with the same PID should fail
1284+
let overlap_result = create_test_tracker(addr + PAGE_SIZE, PAGE_SIZE * 2);
1285+
assert!(
1286+
overlap_result.is_err(),
1287+
"Creating overlapping tracker in same process should fail"
1288+
);
1289+
12931290
// Clean up
12941291
drop(tracker1);
12951292
unsafe {

0 commit comments

Comments
 (0)