]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Remove existing OOM test impl
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 20 Sep 2013 18:11:02 +0000 (19:11 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 8 Oct 2013 11:39:30 +0000 (12:39 +0100)
commit40911b66d441d473b6e4419b1d324f3a4b4ead34
tree02ecd5d86ec2a7aa2b9266f5369013b3da9fac0c
parent50ee3e03572567884692be5a4cfb08a8e616bef7
Remove existing OOM test impl

The current OOM test impl is too inefficient to be used on the
large test suites. It loops running 'main' multiple times, once
for each alloc in the 'main' method. This has complexity
'n * (n + 1) / 2' in terms of total alloc count. It will be
replaced by a more efficient impl whicih runs individual test
cases instead. This will have same complexity but the values
of 'n' will be much smaller, so a net win.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tests/testutils.c