]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsystemdtest: Call at least one virSystemdCreateMachine with 'maxthreads' > 0
authorPeter Krempa <pkrempa@redhat.com>
Wed, 10 Mar 2021 13:37:56 +0000 (14:37 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 12 Mar 2021 09:59:05 +0000 (10:59 +0100)
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 <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tests/virsystemdtest.c

index b48cdb950ca9675fe6c0573dbba342c238cc309a..c082b957322dd862cbf8d8d68dff8e076533f05c 100644 (file)
@@ -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;
     }