diff mbox

tests: check the error of _thread_new

Message ID 1435328017-32089-1-git-send-email-marcandre.lureau@gmail.com
State New
Headers show

Commit Message

Marc-André Lureau June 26, 2015, 2:13 p.m. UTC
Mainly for completeness.

Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
---
 tests/vhost-user-test.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/tests/vhost-user-test.c b/tests/vhost-user-test.c
index 75fedf0..509437b 100644
--- a/tests/vhost-user-test.c
+++ b/tests/vhost-user-test.c
@@ -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;
 }