]> xenbits.xensource.com Git - libvirt.git/commitdiff
aarch64: Fix sysinfo test.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 1 Jan 2014 15:49:55 +0000 (15:49 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 1 Jan 2014 16:34:13 +0000 (16:34 +0000)
On AArch64 the kernel prints one "processor" (lower case 'p') line per
core.  As this was missing from the test data, virSysinfo was not
parsing any processors at all.

Fix the test data so the test now passes.

tests/sysinfodata/aarch64cpuinfo.data
tests/sysinfodata/aarch64sysinfo.expect

index 0d63139357be94d6fc8b13b122039fbec0fc8d66..fbab543ecb195c7bde79213b491edbdaac0edab5 100644 (file)
@@ -1,4 +1,5 @@
 Processor      : AArch64 Processor rev 0 (aarch64)
+processor      : 0
 BogoMIPS       : 100.00
 
 Features       : fp asimd
index 518434d771b653a3c2bfe6610d8546929f82fd17..2cb89325347c5c49f90a808ba12cf9479a400251 100644 (file)
@@ -1,10 +1,6 @@
 <sysinfo type='smbios'>
   <processor>
     <entry name='socket_destination'>0</entry>
-    <entry name='type'>AArch64 Processor rev 0 (aarch64) </entry>
-  </processor>
-  <processor>
-    <entry name='socket_destination'>1</entry>
     <entry name='type'>AArch64 Processor rev 0 (aarch64)</entry>
   </processor>
 </sysinfo>