From 59dfda627da51e5b275775a407f132276b45e638 Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Fri, 2 Nov 2012 12:39:28 +0100 Subject: Fixed tests code to avoid crash if dbus session is not avaliable. --- tests/client/qmltest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/client/qmltest.cpp') diff --git a/tests/client/qmltest.cpp b/tests/client/qmltest.cpp index 4e6f288..ce77f6f 100644 --- a/tests/client/qmltest.cpp +++ b/tests/client/qmltest.cpp @@ -44,8 +44,7 @@ private: private Q_SLOTS: void initTestCase() { - g_type_init(); - Q_ASSERT(m_script.connect()); + QVERIFY(m_script.connect()); } void cleanupTestCase() -- cgit v1.2.3