summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-17 23:25:00 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-09-17 23:25:00 +0000
commit8095dd3217dfbcec4b009a87d534732730ae45bb (patch)
tree9766c3a49a9cb94ff08728ebd57ec67e87efb1fc /tests
parent25fedea4091818e39676e130f512214bf4192a8d (diff)
parent553841ac75aa69f562391b98b983ec4881a89855 (diff)
downloadpango-8095dd3217dfbcec4b009a87d534732730ae45bb.tar.gz
Merge branch 'matthiasc/for-master' into 'master'
misc fixes See merge request GNOME/pango!242
Diffstat (limited to 'tests')
-rw-r--r--tests/test-layout.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test-layout.c b/tests/test-layout.c
index 5362d6fc..a5b6d279 100644
--- a/tests/test-layout.c
+++ b/tests/test-layout.c
@@ -362,13 +362,13 @@ main (int argc, char *argv[])
const gchar *name;
gchar *path;
- g_test_init (&argc, &argv, NULL);
-
/* allow to easily generate expected output for new test cases */
- if (argc > 1)
+ if (argc > 1 && argv[1][0] != '-')
{
GString *string;
+ setlocale (LC_ALL, "en_US.utf8");
+
string = g_string_sized_new (0);
test_file (argv[1], string);
g_test_message ("%s", string->str);
@@ -376,6 +376,8 @@ main (int argc, char *argv[])
return 0;
}
+ g_test_init (&argc, &argv, NULL);
+
path = g_test_build_filename (G_TEST_DIST, "layouts", NULL);
dir = g_dir_open (path, 0, &error);
g_free (path);