mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-01 03:40:13 +01:00
Merge branch 'ci-test-x11' into 'master'
CI: Check test results for cairo-xcb and cairo-x11 See merge request cairo/cairo!165
This commit is contained in:
commit
8f6cfe4177
2 changed files with 25 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
|
@ -612,6 +612,7 @@ expect_fail_due_to_env_var (cairo_test_context_t *ctx,
|
|||
char *env_name;
|
||||
const char *env;
|
||||
cairo_bool_t result = FALSE;
|
||||
char *to_replace;
|
||||
|
||||
/* Construct the name of the env var */
|
||||
env_name = malloc (strlen (prefix) + strlen (target->name) + 1 + strlen (content) + 1);
|
||||
|
|
@ -625,6 +626,14 @@ expect_fail_due_to_env_var (cairo_test_context_t *ctx,
|
|||
strcat (env_name, "_");
|
||||
strcat (env_name, content);
|
||||
|
||||
/* Deal with some invalid characters: Replace '-' and '&' with '_' */
|
||||
while ((to_replace = strchr(env_name, '-')) != NULL) {
|
||||
*to_replace = '_';
|
||||
}
|
||||
while ((to_replace = strchr(env_name, '&')) != NULL) {
|
||||
*to_replace = '_';
|
||||
}
|
||||
|
||||
env = getenv (env_name);
|
||||
|
||||
/* Look for the test name in the env var (comma separated) */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue