diff options
author | Ross Burton <ross@linux.intel.com> | 2010-05-14 10:31:05 +0100 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2010-05-14 10:31:05 +0100 |
commit | 54361c5c613f512ce6462e1584211419011ad754 (patch) | |
tree | d49133b718eef2718fda94c37bba68c4383ab294 /tests | |
parent | 7acb87bacb745397aa0a46d81a034ba9dcf7e57a (diff) | |
download | librest-54361c5c613f512ce6462e1584211419011ad754.tar.gz |
tests/threaded: don't be verbose by default
Diffstat (limited to 'tests')
-rw-r--r-- | tests/threaded.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/threaded.c b/tests/threaded.c index 1bc050e..f04a870 100644 --- a/tests/threaded.c +++ b/tests/threaded.c @@ -28,6 +28,7 @@ #include <rest/rest-proxy.h> static volatile int errors = 0; +static const gboolean verbose = FALSE; static void server_callback (SoupServer *server, SoupMessage *msg, @@ -66,7 +67,8 @@ func (gpointer data) goto done; } - g_print ("Thread %p done\n", g_thread_self ()); + if (verbose) + g_print ("Thread %p done\n", g_thread_self ()); done: g_object_unref (call); @@ -96,7 +98,8 @@ main (int argc, char **argv) for (i = 0; i < G_N_ELEMENTS (threads); i++) { threads[i] = g_thread_create (func, url, TRUE, NULL); - g_print ("Starting thread %p\n", threads[i]); + if (verbose) + g_print ("Starting thread %p\n", threads[i]); } for (i = 0; i < G_N_ELEMENTS (threads); i++) { |