diff options
author | Pasi Petäjäjärvi <pasi.petajajarvi@digia.com> | 2013-01-16 14:34:35 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-23 10:38:59 +0100 |
commit | 416e73a0fcaf31f7c32ba7dcd214b62e6060123c (patch) | |
tree | 1be730c488c0f979a5ab1ffb40631489a5a9c94b /tests/auto/other | |
parent | 2d2da44f6381fdeaa195319c0dc66e3909c2ca7b (diff) |
Check existence of QProcess feature before using it on Qt autotests.
VxWorks does not have QProcess support.
Change-Id: I20ed479125097d468a1aa50afb18c3749f0fbb98
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'tests/auto/other')
-rw-r--r-- | tests/auto/other/networkselftest/tst_networkselftest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/other/networkselftest/tst_networkselftest.cpp b/tests/auto/other/networkselftest/tst_networkselftest.cpp index e9c07a9db2..a08b532291 100644 --- a/tests/auto/other/networkselftest/tst_networkselftest.cpp +++ b/tests/auto/other/networkselftest/tst_networkselftest.cpp @@ -975,6 +975,7 @@ void tst_NetworkSelfTest::smbServer() QCOMPARE(ret, strlen(contents)); QVERIFY(memcmp(buf, contents, strlen(contents)) == 0); #else +#ifndef QT_NO_PROCESS // try to use Samba QString progname = "smbclient"; QProcess smbclient; @@ -1012,6 +1013,9 @@ void tst_NetworkSelfTest::smbServer() output = smbclient.readAll(); QCOMPARE(output.constData(), contents); qDebug() << "Test file is correct"; +#else + QSKIP( "No QProcess support", SkipAll); +#endif #endif } |