qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] tests: check the error of _thread_new


From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH] tests: check the error of _thread_new
Date: Fri, 26 Jun 2015 16:13:37 +0200

Mainly for completeness.

Signed-off-by: Marc-André Lureau <address@hidden>
---
 tests/vhost-user-test.c | 1 +
 1 file changed, 1 insertion(+)

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;
 }
 
-- 
2.4.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]