g_usleep (100000);
/* write our name repeatedly */
- g_message ("THREAD %s: starting loop\n", thread_id);
+ g_message ("THREAD %s: starting loop", thread_id);
while (THREAD_TEST_RUNNING ()) {
gst_object_set_name (object, thread_id);
/* a minimal sleep invokes a thread switch */
}
/* thread is done, so let's return */
- g_message ("THREAD %s: set name\n", thread_id);
+ g_message ("THREAD %s: set name", thread_id);
g_free (thread_id);
return NULL;
gint i;
gboolean expected_failure = FALSE;
- g_message ("\nTEST: set/get without lock\n");
+ g_message ("\nTEST: set/get without lock");
object = g_object_new (gst_fake_object_get_type (), NULL);
gst_object_set_name (object, "main");
THREAD_SWITCH ();
name = gst_object_get_name (object);
if (strcmp (name, "main") != 0) {
- g_message ("MAIN: expected failure during run %d\n", i);
+ g_message ("MAIN: expected failure during run %d", i);
expected_failure = TRUE;
g_free (name);
break;
gchar *name;
gint i;
- g_message ("\nTEST: set/get inside lock\n");
+ g_message ("\nTEST: set/get inside lock");
object = g_object_new (gst_fake_object_get_type (), NULL);
gst_object_set_name (object, "main");
for (j = *i; j < num_objects; j += num_threads) {
GstObject *o = GST_OBJECT (g_list_nth_data (object_list, j));
- /* g_message ("THREAD %p: setting default name on object %d\n",
+ /* g_message ("THREAD %p: setting default name on object %d",
g_thread_self (), j); */
gst_object_set_name (o, NULL);
THREAD_SWITCH ();
}
/* thread is done, so let's return */
- g_message ("THREAD %p: set name\n", g_thread_self ());
+ g_message ("THREAD %p: set name", g_thread_self ());
g_free (i);
return NULL;
gchar *name1, *name2;
GList *l;
- g_message ("\nTEST: uniqueness of default names\n");
+ g_message ("\nTEST: uniqueness of default names");
for (i = 0; i < num_objects; ++i) {
object = g_object_new (gst_fake_object_get_type (), NULL);
name1 = gst_object_get_name (GST_OBJECT (object_list->data));
for (l = object_list->next; l->next; l = l->next) {
- g_message ("object with name %s\n", name1);
+ g_message ("object with name %s", name1);
name2 = gst_object_get_name (GST_OBJECT (l->data));
fail_if (strcmp (name1, name2) == 0, "Two objects with name %s", name2);
g_free (name1);