[tracker/wip/carlosg/junit: 8/15] tests: Add # prior to stdout messages
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/junit: 8/15] tests: Add # prior to stdout messages
- Date: Sat, 12 Dec 2020 19:25:28 +0000 (UTC)
commit d7227a9d55910f2e6e5e1eeda69c01544efb447a
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Dec 10 16:51:09 2020 +0100
tests: Add # prior to stdout messages
These tests mess with stdout in ways that break the TAP format. Let
them print stuff in a way that is ignored there.
tests/libtracker-data/tracker-insert-or-replace-test.c | 4 ++--
tests/libtracker-sparql/tracker-sparql-test.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/tests/libtracker-data/tracker-insert-or-replace-test.c
b/tests/libtracker-data/tracker-insert-or-replace-test.c
index ad6f40721..603c405a0 100644
--- a/tests/libtracker-data/tracker-insert-or-replace-test.c
+++ b/tests/libtracker-data/tracker-insert-or-replace-test.c
@@ -160,7 +160,7 @@ main (int argc, char *argv[])
g_free (query);
}
- g_print ("REPLACE : %u contacts: %f\n",
+ g_print ("# REPLACE : %u contacts: %f\n",
N_QUERIES, g_timer_elapsed (timer, NULL));
g_timer_destroy (timer);
timer = g_timer_new ();
@@ -174,7 +174,7 @@ main (int argc, char *argv[])
g_free (query);
}
- g_print ("ORIGINAL : %u contacts: %f\n", N_QUERIES,
+ g_print ("# ORIGINAL : %u contacts: %f\n", N_QUERIES,
g_timer_elapsed (timer, NULL));
g_timer_destroy (timer);
diff --git a/tests/libtracker-sparql/tracker-sparql-test.c b/tests/libtracker-sparql/tracker-sparql-test.c
index ec831cb12..5e8730bcd 100644
--- a/tests/libtracker-sparql/tracker-sparql-test.c
+++ b/tests/libtracker-sparql/tracker-sparql-test.c
@@ -126,7 +126,7 @@ test_tracker_sparql_cursor_next_async_cb (GObject *source,
if (finished == 1 && next == next_to_cancel) {
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_CANCELLED);
- g_print ("Got Cancellation GError\n");
+ g_print ("# Got Cancellation GError\n");
} else {
g_assert_no_error (error);
}
@@ -153,7 +153,7 @@ test_tracker_sparql_cursor_next_async_cb (GObject *source,
*/
if (next == next_to_cancel && finished == 1) {
/* Cancel */
- g_print ("Cancelling cancellable:%p at count:%d\n",
+ g_print ("# Cancelling cancellable:%p at count:%d\n",
cancellables[query],
next);
g_cancellable_cancel (cancellables[query]);
@@ -174,7 +174,7 @@ test_tracker_sparql_cursor_next_async_query (TrackerSparqlConnection *connection
GError *error = NULL;
g_assert_true (query < G_N_ELEMENTS (queries));
- g_print ("ASYNC query %d starting:\n", query);
+ g_print ("# ASYNC query %d starting:\n", query);
cancellables[query] = g_cancellable_new ();
g_assert_true (cancellables[query] != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]