markup-parse test assumes what NULL is printed as
The markup-parse
test makes the assumption that g_string_append_printf("%s", (void)0x0)
is printed as (null)
. This isn't always the case:
root@bob:/usr/libexec/installed-tests/pango# ./markup-parse --verbose
(MSG: Resulting output doesn't match reference:
--- ./markups/valid-6.expected
+++ /tmp/.YL15XZ
@@ -25,11 +25,11 @@
---
-[0:4] (null) Normal
-[4:5] (null) Normal
-[5:9] (null) Normal
-[9:10] (null) Normal
-[10:14] (null) Normal
-[14:15] (null) Normal
-[15:19] (null) Normal
-[19:2147483647] (null) Normal
+[0:4] (NULL) Normal
+[4:5] (NULL) Normal
+[5:9] (NULL) Normal
+[9:10] (NULL) Normal
+[10:14] (NULL) Normal
+[14:15] (NULL) Normal
+[15:19] (NULL) Normal
+[19:2147483647] (NULL) Normal
A true fix doesn't seem trivial as this is inherently unportable. Should the test just use diff -i
?