mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
tests: Prefer virGetLastErrorMessage in testSELinuxLabeling
Yet another case of not needing virGetLastError processing
This commit is contained in:
parent
c951cdbff9
commit
95e66fcedf
@ -331,10 +331,8 @@ testSELinuxLabeling(const void *opaque)
|
|||||||
VIR_FREE(files[i].context);
|
VIR_FREE(files[i].context);
|
||||||
}
|
}
|
||||||
VIR_FREE(files);
|
VIR_FREE(files);
|
||||||
if (ret < 0) {
|
if (ret < 0)
|
||||||
virErrorPtr err = virGetLastError();
|
VIR_TEST_VERBOSE("%s\n", virGetLastErrorMessage());
|
||||||
VIR_TEST_VERBOSE("%s\n", err ? err->message : "<unknown>");
|
|
||||||
}
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user