diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-11-02 12:39:28 +0100 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-11-02 12:39:28 +0100 |
commit | 59dfda627da51e5b275775a407f132276b45e638 (patch) | |
tree | 153065133c24f0e75b3aabe2d695ea57a484a977 /tests/client/qmltest.cpp | |
parent | 2e6ccdba482da0d042ff3a6a4bee0807f533a3e3 (diff) | |
download | qmenumodel-59dfda627da51e5b275775a407f132276b45e638.tar.gz qmenumodel-59dfda627da51e5b275775a407f132276b45e638.tar.bz2 qmenumodel-59dfda627da51e5b275775a407f132276b45e638.zip |
Fixed tests code to avoid crash if dbus session is not avaliable.
Diffstat (limited to 'tests/client/qmltest.cpp')
-rw-r--r-- | tests/client/qmltest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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() |