aboutsummaryrefslogtreecommitdiff
path: root/tests/client/qmltest.cpp
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-11-02 12:39:28 +0100
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-11-02 12:39:28 +0100
commit59dfda627da51e5b275775a407f132276b45e638 (patch)
tree153065133c24f0e75b3aabe2d695ea57a484a977 /tests/client/qmltest.cpp
parent2e6ccdba482da0d042ff3a6a4bee0807f533a3e3 (diff)
downloadqmenumodel-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.cpp3
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()