Skip to content

Commit 10fc4d8

Browse files
ppennaCopilot
andcommitted
vmotherboard: select the standard RTC and check unit transitions in chipset tests
Adapt the tests from #5243 to the chain without changing their scenario. Select the standard CMOS device and require state-unit start and stop to succeed before inspecting the chipset. At the next reorganization fold the RTC choice into position 052, the start assertions into position 011, and the stop assertion into position 236. No production code changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent bc66980 commit 10fc4d8

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎vmm_core/vmotherboard/src/base_chipset.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,7 @@ mod tests {
16151615
time_source: rtc_time_source(),
16161616
century_reg_idx: 0x32,
16171617
initial_cmos: Some(initial_cmos()),
1618+
mode: dev::GenericCmosRtcMode::Standard,
16181619
}),
16191620
..BaseChipsetDevices::empty()
16201621
};

‎vmm_core/vmotherboard/src/chipset/mod.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,9 +1488,9 @@ pub(crate) mod tests {
14881488
events
14891489
};
14901490

1491-
fixture.units.start().await;
1491+
fixture.units.start().await.unwrap();
14921492
assert_eq!(take_events(), ["omitted:start", "saved:start"]);
1493-
fixture.units.stop().await;
1493+
fixture.units.stop().await.unwrap();
14941494
assert_eq!(take_events(), ["omitted:stop", "saved:stop"]);
14951495

14961496
let saved = fixture.units.save().await.unwrap();
@@ -1501,7 +1501,7 @@ pub(crate) mod tests {
15011501
fixture.units.reset().await.unwrap();
15021502
assert_eq!(take_events(), ["omitted:reset", "saved:reset"]);
15031503
fixture.units.restore(saved).await.unwrap();
1504-
fixture.units.start().await;
1504+
fixture.units.start().await.unwrap();
15051505
assert_eq!(take_events(), ["omitted:start", "saved:start"]);
15061506

15071507
let mut data = [0; 4];

0 commit comments

Comments
 (0)