summaryrefslogtreecommitdiff
path: root/tests/test-common.c
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-03-04 13:18:37 +0000
committerRoss Burton <ross.burton@intel.com>2019-03-25 14:16:20 +0000
commit1ab184fa945c88fca01389f0128b210b1330f454 (patch)
tree1b8a51d1f515c145c3de0ea34738d40afc9fa2d1 /tests/test-common.c
parentfa1c76a58ba9f9ba44462cad877c21db1eeaedd2 (diff)
downloadpango-1ab184fa945c88fca01389f0128b210b1330f454.tar.gz
test-common: do case-insensitive diffs
Typically the tests don't care about the case of the characters, but g_printf("%s", 0x0) returns "(null)" if glibc is being used and "(NULL)" if gnulib's drop-in replacement are used. Fixes #356
Diffstat (limited to 'tests/test-common.c')
-rw-r--r--tests/test-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-common.c b/tests/test-common.c
index 76e74099..34c0e9a8 100644
--- a/tests/test-common.c
+++ b/tests/test-common.c
@@ -39,7 +39,7 @@ diff_with_file (const char *file,
gssize len,
GError **error)
{
- const char *command[] = { "diff", "-u", file, NULL, NULL };
+ const char *command[] = { "diff", "-u", "-i", file, NULL, NULL };
char *diff, *tmpfile;
int fd;
@@ -62,7 +62,7 @@ diff_with_file (const char *file,
goto done;
}
close (fd);
- command[3] = tmpfile;
+ command[4] = tmpfile;
/* run diff command */
g_spawn_sync (NULL,