[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [soprano] test: Fix error in tests
From: Artem Serebriyskiy <v.for.vandal () gmail ! com>
Date: 2011-09-07 9:53:59
Message-ID: 20110907095359.0BC5BA607A () git ! kde ! org
[Download RAW message or body]
Git commit 9acf2a2db260d2c50b72e263f68e8f89deeb9719 by Artem Serebriyskiy.
Committed on 07/09/2011 at 11:52.
Pushed by artemserebriyskiy into branch 'master'.
Fix error in tests
One of the test cases launch test without checking that testing model
supports necessary functionality. This issue is now fixed.
M +4 -0 test/SopranoModelTest.cpp
http://commits.kde.org/soprano/9acf2a2db260d2c50b72e263f68e8f89deeb9719
diff --git a/test/SopranoModelTest.cpp b/test/SopranoModelTest.cpp
index 76f8f93..0589b53 100644
--- a/test/SopranoModelTest.cpp
+++ b/test/SopranoModelTest.cpp
@@ -987,6 +987,10 @@ void SopranoModelTest::testUriEncoding()
QCOMPARE( it.current().subject().uri(), sub );
it.close();
+ /* The following code requires quering feature */
+ if ( !( m_features&BackendFeatureQuery ) )
+ return;
+
QueryResultIterator it2 = m_model->executeQuery( QString( "select ?p where { "
"%1 ?p %2 . }" )
.arg( Node::resourceToN3( sub ) )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic