summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-04-17 13:58:33 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-04-17 14:00:13 (GMT)
commit72032a323d2a08e414e2b09ca37b0a514e0021f2 (patch)
tree88333881b02f5c5681271d1135a45b1c38d8fba8
parent95154796e433b2f38b0a838a77ec1c8ae1d70c43 (diff)
downloadQt-72032a323d2a08e414e2b09ca37b0a514e0021f2.zip
Qt-72032a323d2a08e414e2b09ca37b0a514e0021f2.tar.gz
Qt-72032a323d2a08e414e2b09ca37b0a514e0021f2.tar.bz2
Do not try to test UnixFDs with the system API because it may be too old
-rw-r--r--tests/auto/qdbustype/tst_qdbustype.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qdbustype/tst_qdbustype.cpp b/tests/auto/qdbustype/tst_qdbustype.cpp
index 0469719..676a904 100644
--- a/tests/auto/qdbustype/tst_qdbustype.cpp
+++ b/tests/auto/qdbustype/tst_qdbustype.cpp
@@ -85,7 +85,9 @@ static void addFixedTypes()
QTest::newRow("int64") << DBUS_TYPE_INT64_AS_STRING << true << true;
QTest::newRow("uint64") << DBUS_TYPE_UINT64_AS_STRING << true << true;
QTest::newRow("double") << DBUS_TYPE_DOUBLE_AS_STRING << true << true;
- QTest::newRow("unixfd") << "h" << true << true;
+#ifdef DBUS_TYPE_UNIX_FD_AS_STRING
+ QTest::newRow("unixfd") << DBUS_TYPE_UNIX_FD_AS_STRING << true << true;
+#endif
}
static void addInvalidSingleLetterTypes()