Skip to contentSkip to conversation

tests: check the error of _thread_new

PATCH New Marc-André Lureau 1 participant 1 message Jun 26, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: check the error of _thread_new

Mainly for completeness.

---
 tests/vhost-user-test.c | 1 +
 1 file changed, 1 insertion(+)
tests/vhost-user-test.c +1 -0
index 75fedf0..509437b 100644
@@ -198,6 +198,7 @@ static GThread *_thread_new(const gchar *name, GThreadFunc func, gpointer data)
 #else
     thread = g_thread_create(func, data, TRUE, &error);
 #endif
+    g_assert_no_error(error);
     return thread;
 }
 
Signature · 1 line
2.4.3