[network-manager-vpnc] test: skip utf8 conversion test on systems that can't do that
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-vpnc] test: skip utf8 conversion test on systems that can't do that
- Date: Tue, 1 Sep 2015 10:53:34 +0000 (UTC)
commit 65701cd56ba80f60d1e364aafba0186777d79f4b
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Tue Sep 1 09:27:29 2015 +0200
test: skip utf8 conversion test on systems that can't do that
properties/tests/test-import-export.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/properties/tests/test-import-export.c b/properties/tests/test-import-export.c
index 7007f5c..243bbae 100644
--- a/properties/tests/test-import-export.c
+++ b/properties/tests/test-import-export.c
@@ -611,6 +611,11 @@ test_non_utf8_import (NMVpnEditorPlugin *plugin, const char *dir)
/* Change charset to ISO-8859-15 to match iso885915.pcf */
charset = setlocale (LC_ALL, NULL);
setlocale (LC_ALL, "de_DE euro");
+ if (!g_locale_from_utf8 (expected_id, -1, NULL, NULL, NULL)) {
+ g_test_skip ("ISO-8859-15 not supported on this system");
+ setlocale (LC_ALL, charset);
+ return;
+ }
connection = get_basic_connection ("non-utf8-import", plugin, dir, "iso885915.pcf");
setlocale (LC_ALL, charset);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]