]> xenbits.xensource.com Git - libvirt.git/commit
tests: Fix some test cases on macOS
authorAndrea Bolognani <abologna@redhat.com>
Wed, 25 Oct 2023 14:48:18 +0000 (16:48 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 26 Oct 2023 09:31:06 +0000 (11:31 +0200)
commit3653eb5dcf713b6c0492a1597f7c23401236d4cc
treefc6436bfe1f3019ed12f73fa45070798ca1e7e8c
parentb9a5541b49517b1099b5e2ca54366e3f3a754776
tests: Fix some test cases on macOS

Test cases that depend on duplicating fds are using fairly big
values as targets.

This works fine on Linux, where RLIMIT_NOFILE is 1024 by
default, but fails on macOS which uses 256 as the default.

Decrease the values so that they're valid across all platforms.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
tests/qemuxml2argvdata/disk-source-fd.x86_64-latest.args
tests/qemuxml2argvdata/disk-vhostvdpa.x86_64-latest.args
tests/qemuxml2argvtest.c