From: Peter Krempa Date: Wed, 10 Mar 2021 13:37:56 +0000 (+0100) Subject: virsystemdtest: Call at least one virSystemdCreateMachine with 'maxthreads' > 0 X-Git-Tag: v7.2.0-rc1~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b8f78a3afcb51f74cc81b69226a3c49a49f0b9b;p=thirdparty%2Flibvirt.git virsystemdtest: Call at least one virSystemdCreateMachine with 'maxthreads' > 0 There was a bug in the code adding TasksMax property. It remained undetected because all tests used '0' for @maxthreads. Signed-off-by: Peter Krempa Reviewed-by: Pavel Hrdina --- diff --git a/tests/virsystemdtest.c b/tests/virsystemdtest.c index b48cdb950c..c082b95732 100644 --- a/tests/virsystemdtest.c +++ b/tests/virsystemdtest.c @@ -313,7 +313,7 @@ static int testCreateNetwork(const void *opaque G_GNUC_UNUSED) 123, true, nnicindexes, nicindexes, - "highpriority.slice", 0) < 0) { + "highpriority.slice", 2) < 0) { fprintf(stderr, "%s", "Failed to create LXC machine\n"); return -1; }