mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
Remove translations in socket test case
The test case errors should not be translated since they're only targetted at developers, not users. * tests/virnetsockettest.c: Remove error reporting with translations
This commit is contained in:
parent
745c3e7981
commit
b0a510ad2a
@ -207,14 +207,11 @@ static int testSocketUNIXAccept(const void *data ATTRIBUTE_UNUSED)
|
|||||||
|
|
||||||
tmpdir = mkdtemp(template);
|
tmpdir = mkdtemp(template);
|
||||||
if (tmpdir == NULL) {
|
if (tmpdir == NULL) {
|
||||||
virReportSystemError(errno, "%s",
|
VIR_WARN("Failed to create temporary directory");
|
||||||
_("Failed to create temporary directory"));
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
if (virAsprintf(&path, "%s/test.sock", tmpdir) < 0) {
|
if (virAsprintf(&path, "%s/test.sock", tmpdir) < 0)
|
||||||
virReportOOMError();
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
|
||||||
|
|
||||||
if (virNetSocketNewListenUNIX(path, 0700, -1, getgid(), &lsock) < 0)
|
if (virNetSocketNewListenUNIX(path, 0700, -1, getgid(), &lsock) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@ -260,14 +257,11 @@ static int testSocketUNIXAddrs(const void *data ATTRIBUTE_UNUSED)
|
|||||||
|
|
||||||
tmpdir = mkdtemp(template);
|
tmpdir = mkdtemp(template);
|
||||||
if (tmpdir == NULL) {
|
if (tmpdir == NULL) {
|
||||||
virReportSystemError(errno, "%s",
|
VIR_WARN("Failed to create temporary directory");
|
||||||
_("Failed to create temporary directory"));
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
if (virAsprintf(&path, "%s/test.sock", tmpdir) < 0) {
|
if (virAsprintf(&path, "%s/test.sock", tmpdir) < 0)
|
||||||
virReportOOMError();
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
|
||||||
|
|
||||||
if (virNetSocketNewListenUNIX(path, 0700, -1, getgid(), &lsock) < 0)
|
if (virNetSocketNewListenUNIX(path, 0700, -1, getgid(), &lsock) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user