[PATCHv2 0/3] sysinfo: s390 bug fix and tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Another 'small' patch that developed into a series, hence the
v2 denomination.

Primarily this fixes a memory issue in virSysinfoRead on s390.
As a side effect it became necessary to work around a GCC
bug.
Finally I have followed Daniel Berrange's suggestion to provide
tests for sysinfo.

Viktor Mihajlovski (3):
  build: Check for broken GCC -Wlogical-op in configure
  S390: Fix virSysinfoRead memory corruption
  tests: Add tests for sysinfo

 cfg.mk                               |   2 +-
 configure.ac                         |  23 ++++
 src/libvirt_private.syms             |   1 +
 src/util/sysinfo.c                   | 192 +++++++++++++++++----------------
 tests/Makefile.am                    |   6 ++
 tests/sysinfodata/dmidecode.sh       |   3 +
 tests/sysinfodata/s390cpuinfo.data   |  12 +++
 tests/sysinfodata/s390sysinfo.data   | 114 ++++++++++++++++++++
 tests/sysinfodata/s390sysinfo.expect |  25 +++++
 tests/sysinfodata/x86sysinfo.data    |  83 +++++++++++++++
 tests/sysinfodata/x86sysinfo.expect  |  53 ++++++++++
 tests/sysinfotest.c                  | 200 +++++++++++++++++++++++++++++++++++
 12 files changed, 619 insertions(+), 95 deletions(-)
 create mode 100755 tests/sysinfodata/dmidecode.sh
 create mode 100644 tests/sysinfodata/s390cpuinfo.data
 create mode 100644 tests/sysinfodata/s390sysinfo.data
 create mode 100644 tests/sysinfodata/s390sysinfo.expect
 create mode 100644 tests/sysinfodata/x86sysinfo.data
 create mode 100644 tests/sysinfodata/x86sysinfo.expect
 create mode 100644 tests/sysinfotest.c

-- 
1.7.12.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]