diff options
author | Ross Burton <ross.burton@intel.com> | 2019-03-04 13:47:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-04 22:57:05 +0000 |
commit | ce1487f4aec715d5a94a507ec66f8d958e13c18f (patch) | |
tree | f38efc6dd5079a690c1aae3daf96da64ea09366e /meta/recipes-graphics | |
parent | c3acb677fa5b262511716446ed9330a87508774f (diff) | |
download | poky-ce1487f4aec715d5a94a507ec66f8d958e13c18f.tar.gz |
pango: fix markup-parse test case
The test case expects that printf(0x0) is (null) but for us this it is (NULL).
Use case-insensitive diff as the rest of the tests don't care about case.
(From OE-Core rev: b19a6501599ba7567c7c7d1456b62a8702a7e82a)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/pango/pango/insensitive-diff.patch | 28 | ||||
-rw-r--r-- | meta/recipes-graphics/pango/pango_1.42.4.bb | 3 |
2 files changed, 30 insertions, 1 deletions
diff --git a/meta/recipes-graphics/pango/pango/insensitive-diff.patch b/meta/recipes-graphics/pango/pango/insensitive-diff.patch new file mode 100644 index 0000000000..faaa96133f --- /dev/null +++ b/meta/recipes-graphics/pango/pango/insensitive-diff.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | Do case-insensitive diffs as the test is sensitive as to whether 0x0 is printed | ||
2 | as (null) or (NULL). | ||
3 | |||
4 | Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/pango/merge_requests/44] | ||
5 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
6 | |||
7 | diff --git a/tests/markup-parse.c b/tests/markup-parse.c | ||
8 | index 633f3e89..36d2c776 100644 | ||
9 | --- a/tests/markup-parse.c | ||
10 | +++ b/tests/markup-parse.c | ||
11 | @@ -217,7 +217,7 @@ diff_with_file (const char *file1, | ||
12 | GString *string, | ||
13 | GError **error) | ||
14 | { | ||
15 | - const char *command[] = { "diff", "-u", file1, NULL, NULL }; | ||
16 | + const char *command[] = { "diff", "-u", "-i", file1, NULL, NULL }; | ||
17 | char *diff, *tmpfile; | ||
18 | int fd; | ||
19 | |||
20 | @@ -237,7 +237,7 @@ diff_with_file (const char *file1, | ||
21 | goto done; | ||
22 | } | ||
23 | close (fd); | ||
24 | - command[3] = tmpfile; | ||
25 | + command[4] = tmpfile; | ||
26 | |||
27 | /* run diff command */ | ||
28 | g_spawn_sync (NULL, (char **)command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &diff, NULL, NULL, error); | ||
diff --git a/meta/recipes-graphics/pango/pango_1.42.4.bb b/meta/recipes-graphics/pango/pango_1.42.4.bb index e181bcb500..d3357f82de 100644 --- a/meta/recipes-graphics/pango/pango_1.42.4.bb +++ b/meta/recipes-graphics/pango/pango_1.42.4.bb | |||
@@ -16,7 +16,8 @@ GNOMEBASEBUILDCLASS = "meson" | |||
16 | inherit gnomebase gtk-doc ptest-gnome upstream-version-is-even gobject-introspection | 16 | inherit gnomebase gtk-doc ptest-gnome upstream-version-is-even gobject-introspection |
17 | 17 | ||
18 | SRC_URI += "file://run-ptest \ | 18 | SRC_URI += "file://run-ptest \ |
19 | " | 19 | file://insensitive-diff.patch" |
20 | |||
20 | SRC_URI[archive.md5sum] = "deb171a31a3ad76342d5195a1b5bbc7c" | 21 | SRC_URI[archive.md5sum] = "deb171a31a3ad76342d5195a1b5bbc7c" |
21 | SRC_URI[archive.sha256sum] = "1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa7699d9f5da597c9d" | 22 | SRC_URI[archive.sha256sum] = "1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa7699d9f5da597c9d" |
22 | 23 | ||