mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
tests: virtnettlscontexttest: Use virGetLastErrorMessage()
Use virGetLastErrorMessage() rather than open code it
This commit is contained in:
parent
f4a212d7f9
commit
4902231777
@ -90,13 +90,12 @@ static int testTLSContextInit(const void *opaque)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
virErrorPtr err = virGetLastError();
|
|
||||||
if (!data->expectFail) {
|
if (!data->expectFail) {
|
||||||
VIR_WARN("Unexpected failure %s against %s",
|
VIR_WARN("Unexpected failure %s against %s",
|
||||||
data->cacrt, data->crt);
|
data->cacrt, data->crt);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
VIR_DEBUG("Got error %s", err ? err->message : "<unknown>");
|
VIR_DEBUG("Got error %s", virGetLastErrorMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user