Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pango
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
187
Issues
187
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
pango
Commits
984ed459
Commit
984ed459
authored
Jun 08, 2020
by
Emmanuele Bassi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip test-break when the en_US locale is missing
Just like test-layout and test-itemize.
parent
85167fff
Pipeline
#186641
failed with stages
in 1 minute and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
tests/test-break.c
tests/test-break.c
+12
-3
No files found.
tests/test-break.c
View file @
984ed459
...
...
@@ -241,6 +241,16 @@ test_break (gconstpointer d)
GString
*
dump
;
gchar
*
diff
;
const
char
*
old_locale
=
setlocale
(
LC_ALL
,
NULL
);
setlocale
(
LC_ALL
,
"en_US.UTF-8"
);
if
(
strstr
(
setlocale
(
LC_ALL
,
NULL
),
"en_US"
)
==
NULL
)
{
char
*
msg
=
g_strdup_printf
(
"Locale en_US.UTF-8 not available, skipping break %s"
,
filename
);
g_test_skip
(
msg
);
g_free
(
msg
);
return
;
}
expected_file
=
get_expected_filename
(
filename
);
dump
=
g_string_sized_new
(
0
);
...
...
@@ -260,6 +270,8 @@ test_break (gconstpointer d)
g_string_free
(
dump
,
TRUE
);
g_free
(
expected_file
);
setlocale
(
LC_ALL
,
old_locale
);
}
int
...
...
@@ -270,9 +282,6 @@ main (int argc, char *argv[])
const
gchar
*
name
;
gchar
*
path
;
g_setenv
(
"LC_ALL"
,
"en_US.UTF-8"
,
TRUE
);
setlocale
(
LC_ALL
,
""
);
g_test_init
(
&
argc
,
&
argv
,
NULL
);
context
=
pango_font_map_create_context
(
pango_cairo_font_map_get_default
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment