mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: cpu: Fix aarch64 unit test
This fixes commit 2668dbbd8b which changed
the error message.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
+2
-2
@@ -3009,7 +3009,7 @@ mod tests {
|
|||||||
assert!(res.is_err());
|
assert!(res.is_err());
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
format!("{}", res.unwrap_err()),
|
format!("{}", res.unwrap_err()),
|
||||||
"Failed to get core register: Exec format error (os error 8)"
|
"Failed to get aarch64 core register: Exec format error (os error 8)"
|
||||||
);
|
);
|
||||||
|
|
||||||
let mut state = vcpu.create_standard_regs();
|
let mut state = vcpu.create_standard_regs();
|
||||||
@@ -3017,7 +3017,7 @@ mod tests {
|
|||||||
assert!(res.is_err());
|
assert!(res.is_err());
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
format!("{}", res.unwrap_err()),
|
format!("{}", res.unwrap_err()),
|
||||||
"Failed to set core register: Exec format error (os error 8)"
|
"Failed to set aarch64 core register: Exec format error (os error 8)"
|
||||||
);
|
);
|
||||||
|
|
||||||
vcpu.vcpu_init(&kvi).unwrap();
|
vcpu.vcpu_init(&kvi).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user