libvirt/src/test
John Ferlan 865f479dab test: Make common test*ObjFindByName helpers
Rather than have continued repeated sequences of :

    testDriverLock()
    xxx = vir*ObjFindByName()
    testDriverUnlock()

    if (xxx == NULL) {
        virReportError
        goto cleanup;
    }

Make some common helpers which will use the pattern and make a single
reference using a single common error message.

Altered for Interfaces, Storage Pools, Storage Volumes, and Node Devices.

For each the common error message can now also indicate which 'name' was
not found. For Storage Volumes, the "new" error will be more specific
rather than just invalid argument.
2017-03-06 07:16:33 -05:00
..
test_driver.c test: Make common test*ObjFindByName helpers 2017-03-06 07:16:33 -05:00
test_driver.h
test-screenshot.png test: fix screenshot API impl 2016-12-08 10:57:32 +00:00