mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Drop dirname argument from testQemuCapsIterate()
As evidenced by all existing callers, the only directory it makes sense to use is TEST_QEMU_CAPS_PATH, so let's just bake that into the function. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
@@ -903,8 +903,7 @@ testQemuGetLatestCaps(void)
|
||||
|
||||
|
||||
int
|
||||
testQemuCapsIterate(const char *dirname,
|
||||
const char *suffix,
|
||||
testQemuCapsIterate(const char *suffix,
|
||||
testQemuCapsIterateCallback callback,
|
||||
void *opaque)
|
||||
{
|
||||
@@ -916,10 +915,10 @@ testQemuCapsIterate(const char *dirname,
|
||||
if (!callback)
|
||||
return 0;
|
||||
|
||||
if (virDirOpen(&dir, dirname) < 0)
|
||||
if (virDirOpen(&dir, TEST_QEMU_CAPS_PATH) < 0)
|
||||
goto cleanup;
|
||||
|
||||
while ((rc = virDirRead(dir, &ent, dirname) > 0)) {
|
||||
while ((rc = virDirRead(dir, &ent, TEST_QEMU_CAPS_PATH) > 0)) {
|
||||
char *tmp = ent->d_name;
|
||||
char *base = NULL;
|
||||
char *archName = NULL;
|
||||
|
||||
Reference in New Issue
Block a user