mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
tests: Correctly parse number of host cpus > 255
test_cpu_affinity needs the number of host CPUs. Since it is possible for the host to have more than 255 CPUs; increase the size of the datatype used for parsing the string to accomodate this. Signed-off-by: dom.song <dom.song@amperecomputing.com>
This commit is contained in:
parent
dbce6cb1ce
commit
99d42bb05e
@ -2439,7 +2439,7 @@ mod common_parallel {
|
||||
assert!(
|
||||
String::from_utf8_lossy(&host_cpus_count.stdout)
|
||||
.trim()
|
||||
.parse::<u8>()
|
||||
.parse::<u16>()
|
||||
.unwrap_or(0)
|
||||
>= 4
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user