diff options
Diffstat (limited to 'tests/test-double.c')
-rw-r--r-- | tests/test-double.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test-double.c b/tests/test-double.c index 0092d8b..c518e7a 100644 --- a/tests/test-double.c +++ b/tests/test-double.c @@ -16,6 +16,8 @@ #include <gudev/gudev.h> +#define GNU_SKIP_RETURNCODE 77 + static void test_double (void) { @@ -54,7 +56,11 @@ test_double (void) int main(int argc, char **argv) { setlocale (LC_ALL, NULL); - setlocale (LC_NUMERIC, "fr_FR.UTF-8"); + + /* Skip if locale is unavailable */ + if (setlocale (LC_NUMERIC, "fr_FR.UTF-8") == NULL) + return 77; + g_test_init (&argc, &argv, NULL); g_test_add_func ("/gudev/double", test_double); |