aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2011-11-03 10:52:44 +0000
committerDaniel P. Berrange <berrange@redhat.com>2011-11-03 10:52:44 +0000
commitb0a510ad2a3d11150ce7f10c76d333b3f18022b6 (patch)
tree04592a4cc51d70852b0ac769ae92d76b9cc90b7d /tests/virnetsockettest.c
parentvirnetsockettest: Use a temporary directory in /tmp (diff)
downloadlibvirt-b0a510ad2a3d11150ce7f10c76d333b3f18022b6.tar.gz
libvirt-b0a510ad2a3d11150ce7f10c76d333b3f18022b6.tar.bz2
libvirt-b0a510ad2a3d11150ce7f10c76d333b3f18022b6.zip
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
Diffstat (limited to 'tests/virnetsockettest.c')
-rw-r--r--tests/virnetsockettest.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/virnetsockettest.c b/tests/virnetsockettest.c
index a76e5cccf..16713e830 100644
--- a/tests/virnetsockettest.c
+++ b/tests/virnetsockettest.c
@@ -207,14 +207,11 @@ static int testSocketUNIXAccept(const void *data ATTRIBUTE_UNUSED)
tmpdir = mkdtemp(template);
if (tmpdir == NULL) {
- virReportSystemError(errno, "%s",
- _("Failed to create temporary directory"));
+ VIR_WARN("Failed to create temporary directory");
goto cleanup;
}
- if (virAsprintf(&path, "%s/test.sock", tmpdir) < 0) {
- virReportOOMError();
+ if (virAsprintf(&path, "%s/test.sock", tmpdir) < 0)
goto cleanup;
- }
if (virNetSocketNewListenUNIX(path, 0700, -1, getgid(), &lsock) < 0)
goto cleanup;
@@ -260,14 +257,11 @@ static int testSocketUNIXAddrs(const void *data ATTRIBUTE_UNUSED)
tmpdir = mkdtemp(template);
if (tmpdir == NULL) {
- virReportSystemError(errno, "%s",
- _("Failed to create temporary directory"));
+ VIR_WARN("Failed to create temporary directory");
goto cleanup;
}
- if (virAsprintf(&path, "%s/test.sock", tmpdir) < 0) {
- virReportOOMError();
+ if (virAsprintf(&path, "%s/test.sock", tmpdir) < 0)
goto cleanup;
- }
if (virNetSocketNewListenUNIX(path, 0700, -1, getgid(), &lsock) < 0)
goto cleanup;