diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-02-26 17:12:22 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-04-16 13:05:37 +0100 |
commit | b7e56c18a961fc9717fd399077b2d5a1126669cb (patch) | |
tree | fa8e236d9729e47ea9d64e29ae2a5637a7513b8f /test/fdpass.c | |
parent | 54f92110f653965b791c8e38cba29582d99fba65 (diff) | |
download | dbus-b7e56c18a961fc9717fd399077b2d5a1126669cb.tar.gz |
tests: avoid noise on stdout when not --verbose
This makes life easier for frameworks like LAVA that screen-scrape
test results.
g_test_message() is not displayed by default, but each test can be run
with either --tap or --verbose to get these messages displayed.
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89846
Diffstat (limited to 'test/fdpass.c')
-rw-r--r-- | test/fdpass.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/fdpass.c b/test/fdpass.c index 74235c6f..9a9d0ed6 100644 --- a/test/fdpass.c +++ b/test/fdpass.c @@ -199,7 +199,7 @@ test_connect (Fixture *f, while (f->left_server_conn == NULL) { - g_print ("."); + test_progress ('.'); test_main_context_iterate (f->ctx, TRUE); } @@ -212,7 +212,7 @@ test_connect (Fixture *f, while (f->right_server_conn == NULL) { - g_print ("."); + test_progress ('.'); test_main_context_iterate (f->ctx, TRUE); } @@ -229,7 +229,7 @@ test_connect (Fixture *f, !dbus_connection_get_is_authenticated (f->left_server_conn) || !dbus_connection_get_is_authenticated (f->right_server_conn)) { - g_printerr ("*"); + test_progress ('*'); test_main_context_iterate (f->ctx, TRUE); } @@ -311,7 +311,7 @@ test_relay (Fixture *f, while (g_queue_get_length (&f->messages) < 1) { - g_print ("."); + test_progress ('.'); test_main_context_iterate (f->ctx, TRUE); } @@ -394,7 +394,7 @@ test_limit (Fixture *f, while (g_queue_get_length (&f->messages) < 1) { - g_print ("."); + test_progress ('.'); test_main_context_iterate (f->ctx, TRUE); } @@ -454,7 +454,7 @@ test_too_many (Fixture *f, while (dbus_connection_get_is_connected (f->left_client_conn) || dbus_connection_get_is_connected (f->left_server_conn)) { - g_print ("."); + test_progress ('.'); test_main_context_iterate (f->ctx, TRUE); } @@ -587,7 +587,7 @@ test_too_many_split (Fixture *f, while (dbus_connection_get_is_connected (f->left_client_conn) || dbus_connection_get_is_connected (f->left_server_conn)) { - g_print ("."); + test_progress ('.'); test_main_context_iterate (f->ctx, TRUE); } @@ -643,7 +643,7 @@ test_flood (Fixture *f, while (g_queue_get_length (&f->messages) < SOME_MESSAGES) { - g_print ("."); + test_progress ('.'); test_main_context_iterate (f->ctx, TRUE); } @@ -711,7 +711,7 @@ test_odd_limit (Fixture *f, while (dbus_connection_get_is_connected (f->left_client_conn) || dbus_connection_get_is_connected (f->left_server_conn)) { - g_print ("."); + test_progress ('.'); test_main_context_iterate (f->ctx, TRUE); } @@ -730,7 +730,7 @@ test_odd_limit (Fixture *f, /* We're at or under the limit. The message gets through intact. */ while (g_queue_get_length (&f->messages) < 1) { - g_print ("."); + test_progress ('.'); test_main_context_iterate (f->ctx, TRUE); } |