~online-accounts/signon/packaging

« back to all changes in this revision

Viewing changes to tests/signond-tests/signond-tests.pro

  • Committer: Alberto Mardegan
  • Date: 2016-08-24 13:13:57 UTC
  • mto: This revision was merged to the branch mainline in revision 637.
  • Revision ID: git-v1:b01d837c3e0f0b65586f9cbf514b8fa020c6d672
Tests: fix the AuthSession "test from another process"

This test is failing with Qt 5.6, getting stuck when calling
QDBusConnection::connectTo() from the child process. Given that calling
fork() from a test function is generally not a good idea, we refactor
this test to avoid calling fork() directly, and use a separate QProcess
instead.

While doing this, we move the refactored test to the signond-tests
directory, since this test is not testing the client library at all, but
only signond's functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    access-control.pro \
9
9
 
10
10
system(pkg-config --exists libqtdbusmock-1) {
11
 
    SUBDIRS += tst_signond.pro
 
11
    SUBDIRS += \
 
12
        session_tool.pro \
 
13
        tst_signond.pro
 
14
    tst_signond.depends += session_tool
12
15
}
13
16
 
14
17
# Disabled until fixed