summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDiane Trout <diane@ghic.org>2014-01-07 21:17:12 -0800
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2014-04-27 18:13:04 +0200
commitbd531faca2d1f5c0545beaf88a29a4a81ca0754f (patch)
tree7a63beda2d4a1bffab80819d0d1560d7de19a96a /tests
parentacfbbbb9dcc1258eb9c15ae45e2afd4c2f44e405 (diff)
tests/auto/valuetest.cpp Add QVERIFY to fail more quickly.
I found it useful to know that the createSimple call failed before it was passed around through the Value type.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/valuetest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/valuetest.cpp b/tests/auto/valuetest.cpp
index 356a358..3c4fa00 100644
--- a/tests/auto/valuetest.cpp
+++ b/tests/auto/valuetest.cpp
@@ -119,6 +119,7 @@ void ValueTest::miniObjectTest()
void ValueTest::capsTest()
{
QGst::CapsPtr caps = QGst::Caps::createSimple("video/x-raw");
+ QVERIFY(caps);
QGlib::Value v = QGlib::Value::create(caps);
QCOMPARE(v.type(), QGlib::GetType<QGst::Caps>());
QCOMPARE(static_cast<GstCaps*>(v.get<QGst::CapsPtr>()), static_cast<GstCaps*>(caps));