summaryrefslogtreecommitdiffstats
path: root/tests/auto/other
diff options
context:
space:
mode:
authorPasi Petäjäjärvi <pasi.petajajarvi@digia.com>2013-01-16 14:34:35 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-28 16:06:15 +0100
commitf3fc2078b895e257af0c0e88eec92da620b6094f (patch)
tree863a655432d55097fdd8d98547b9f7366a2d27a4 /tests/auto/other
parente778042ed7dc5c12aeea0dfcd5401bc9d002dc53 (diff)
Check existence of QProcess feature before using it on Qt autotests.
VxWorks does not have QProcess support. Change-Id: I917b769f967e9d71ec5025aae788f3e237b07aeb Reviewed-by: Samuel Rødal <samuel.rodal@digia.com> (cherry picked from commit 416e73a0fcaf31f7c32ba7dcd214b62e6060123c)
Diffstat (limited to 'tests/auto/other')
-rw-r--r--tests/auto/other/networkselftest/tst_networkselftest.cpp4
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 fa758d0498..2932387bdb 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
}