[glib] Fix the new test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix the new test
- Date: Wed, 25 Jan 2012 12:33:04 +0000 (UTC)
commit aea9951ef0714418ac139a6c3678eb64d82c692f
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 25 07:32:20 2012 -0500
Fix the new test
glib/tests/keyfile.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/keyfile.c b/glib/tests/keyfile.c
index 0fc9fa8..423351c 100644
--- a/glib/tests/keyfile.c
+++ b/glib/tests/keyfile.c
@@ -679,7 +679,8 @@ test_locale_string (void)
/* now test that translations are thrown away */
old_locale = g_strdup (setlocale (LC_ALL, NULL));
- setlocale (LC_ALL, "de_DE.utf-8");
+ setenv ("LANGUAGE", "de", TRUE);
+ setlocale (LC_ALL, "");
keyfile = load_data (data, 0);
@@ -1450,7 +1451,7 @@ test_list_separator (void)
g_key_file_set_list_separator (keyfile, ',');
g_key_file_load_from_data (keyfile, data, -1, 0, &error);
- check_string_list_value (keyfile, "valid", "key1", "v1", "v2", NULL);
+ check_string_list_value (keyfile, "test", "key1", "v1", "v2", NULL);
g_key_file_unref (keyfile);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]