summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>2015-08-05 11:57:57 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>2015-08-05 13:39:44 +0000
commit8635890e7a124cb3fab3a5c3ca21c171d5938e7d (patch)
tree792583ba7380be580539b2d5d72c244940b96f1a /tests
parent6e1bcece63144e22eb1b60735e3b1d49d0c758b7 (diff)
QEXPECT_FAIL test on platforms that are not supported.
Change-Id: If7661550220e078c2ff3ba7b75401f99dea614a0 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/purchasing/qinappstore/tst_qinappstore.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/purchasing/qinappstore/tst_qinappstore.cpp b/tests/auto/purchasing/qinappstore/tst_qinappstore.cpp
index f5bc1be..fb9af20 100644
--- a/tests/auto/purchasing/qinappstore/tst_qinappstore.cpp
+++ b/tests/auto/purchasing/qinappstore/tst_qinappstore.cpp
@@ -81,6 +81,10 @@ void tst_QInAppStore::registerUnknownProduct()
store.registerProduct(QInAppProduct::Consumable, QStringLiteral("unknownConsumable"));
store.registerProduct(QInAppProduct::Unlockable, QStringLiteral("unknownUnlockable"));
+#if !defined(Q_OS_IOS) && !defined(Q_OS_ANDROID)
+ QEXPECT_FAIL("", "Qt Purchasing not implemented on this platform.", Abort);
+#endif
+
QTRY_COMPARE(receiver.unknownProducts.size(), 2);
QCOMPARE(receiver.registeredProducts.size(), 0);
QCOMPARE(receiver.readyTransactions.size(), 0);