]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test: qemuxml2argv: Mock virMemoryMaxValue to remove 32/64 bit difference
authorPeter Krempa <pkrempa@redhat.com>
Thu, 10 Dec 2015 13:36:51 +0000 (14:36 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 11 Dec 2015 11:23:38 +0000 (12:23 +0100)
commitace1ee225f5cd87fb095054a6a19bdcd0fa57518
tree103296270da55fe598f604eed60426ef2037ab5f
parent81a110edc72a42f5c6316d554a5ea64f1d8d83b0
test: qemuxml2argv: Mock virMemoryMaxValue to remove 32/64 bit difference

Always return LLONG_MAX even on 32 bit systems. The limitation
originates from our use of "unsigned long" in several APIs. The internal
data type is unsigned long long. Make the test suite deterministic by
removing the architecture difference.

Flaw was introduced in 645881139b3d2c86acf9d644c3a1471520bc9e57 where
I've added a test that uses too large numbers.
src/util/virutil.c
tests/qemuxml2argvmock.c