]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testNodeDeviceMockCreateVport: Don't call public APIs
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 28 Feb 2017 09:48:05 +0000 (10:48 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 28 Feb 2017 16:59:58 +0000 (17:59 +0100)
commit2a8620921246fe7c7eaa233d120a029ea98bcff6
tree342f833671dbdaecd0f4d97c4073fe3226314b0f
parentca1f38545750d597c75c9773723c716483b03e5c
testNodeDeviceMockCreateVport: Don't call public APIs

This function is calling public APIs (virNodeDeviceLookupByName
etc.). That requires the driver lock to be unlocked and locked
again. If we, however, replace the public APIs calls with the
internal calls (that public APIs call anyway), we can drop the
lock/unlock exercise.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/test/test_driver.c