[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] avoid testcase failures due to LANG!=C



Hi,
some checks compare to the english error messages:

--- out 2008-12-18 15:36:44.000000000 +0100
+++ exp 2008-12-18 15:36:44.000000000 +0100
@@ -1,3 +1,3 @@
-libvir: Domain Config Fehler : failed Xen syscall Topologie-Syntaxfehler beim Cpuset
-Fehler: Fehler beim Definieren einer Domain von xml-invalid
+libvir: Domain Config error : failed Xen syscall topology cpuset syntax error
+error: Failed to define domain from xml-invalid

FAIL: cpuset

so we should set LC_ALL=C in the checks. Possible patch attached.
 -- Guido
>From a89d2d945bd6e97578b44288861a90dad767f30b Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Guido=20G=C3=BCnther?= <agx sigxcpu org>
Date: Thu, 18 Dec 2008 15:39:56 +0100
Subject: [PATCH] avoid testcase failures due to localized error messages

---
 tests/Makefile.am |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 87e4235..5290606 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -105,6 +105,7 @@ TESTS_ENVIRONMENT =				\
   PATH="$(path_add)$(PATH_SEPARATOR)$$PATH"	\
   SHELL="$(SHELL)"				\
   LIBVIRT_DRIVER_DIR="$(abs_top_builddir)/src/.libs" \
+  LC_ALL=C					\
   $(VG)
 
 valgrind:
-- 
1.6.0.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]