aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--quotest/quotest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/quotest/quotest.cpp b/quotest/quotest.cpp
index b14442b9..1eed865f 100644
--- a/quotest/quotest.cpp
+++ b/quotest/quotest.cpp
@@ -764,6 +764,14 @@ TEST_IMPL(visitResources)
clog << "Incorrect matrix.to representation:"
<< matrixToUrl.toStdString() << endl;
}
+ const auto checkResult = checkResource(connection(), uriString);
+ if ((checkResult != UriResolved && uri.type() != Uri::NonMatrix)
+ || (uri.type() == Uri::NonMatrix
+ && checkResult != CouldNotResolve)) {
+ clog << "checkResource() returned incorrect result:"
+ << checkResult;
+ FAIL_TEST();
+ }
ud.visitResource(connection(), uriString);
if (spy.count() != 1) {
clog << "Wrong number of signal emissions (" << spy.count()