summaryrefslogtreecommitdiff
path: root/tests/xmlrpc-server-test.c
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2020-02-28 12:54:59 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2020-02-28 12:55:12 +0900
commitb74c5fd5483969d55625576448662edf864b6b9e (patch)
treee3cd0fca2b0804eb86ec06c49c5495444a86f98d /tests/xmlrpc-server-test.c
parent58894334cd3f0b89c865304e8e9d6eea3cd20a55 (diff)
downloadlibsoup-b74c5fd5483969d55625576448662edf864b6b9e.tar.gz
libsoup-b74c5fd5483969d55625576448662edf864b6b9e.tar.bz2
libsoup-b74c5fd5483969d55625576448662edf864b6b9e.zip
Imported Upstream version 2.69.90upstream/2.69.90upstream/2.69.0
Change-Id: I484cce89dab3187f91ab6e005e265514a03028bd
Diffstat (limited to 'tests/xmlrpc-server-test.c')
-rw-r--r--tests/xmlrpc-server-test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/xmlrpc-server-test.c b/tests/xmlrpc-server-test.c
index 80f04ea8..a6d4abd5 100644
--- a/tests/xmlrpc-server-test.c
+++ b/tests/xmlrpc-server-test.c
@@ -344,6 +344,13 @@ main (int argc, char **argv)
g_free (out);
for (i = 0; tests[i] && *tests[i]; i++) {
+ /* GLib >= 2.62 defaults to TAP output for tests, and
+ * this adds TAP diagnostics "#..." and the test count
+ * "1..N", even in the output of "some-test -l".
+ * Ignore those. */
+ if (tests[i][0] == '#' || g_str_has_prefix (tests[i], "1.."))
+ continue;
+
g_assert_true (g_str_has_prefix (tests[i], "/xmlrpc/"));
path = g_strdup_printf ("/xmlrpc-server/%s", tests[i] + strlen ("/xmlrpc/"));
g_test_add_data_func (path, tests[i], do_one_xmlrpc_test);