]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: hostdev: Remove magic numbers
authorAndrea Bolognani <abologna@redhat.com>
Wed, 2 Mar 2016 12:17:08 +0000 (13:17 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 8 Mar 2016 09:16:43 +0000 (10:16 +0100)
commit9f506fdb6be8a2d7b6b52b28eb65bfac7e040eb1
tree21f7cef07329c4573539a62c8798ce0d4f919432
parent18f231e6ff953c014f4ef0a75da7bf20c4f35de9
tests: hostdev: Remove magic numbers

When checking the number of devices added to a device list, use the
nhostdevs variable instead of its value, so that the test can keep
working even if more hostdevs are added.
tests/virhostdevtest.c