summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/clangstaticanalyzer/clangstaticanalyzerunittests.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/clangstaticanalyzer/clangstaticanalyzerunittests.cpp b/plugins/clangstaticanalyzer/clangstaticanalyzerunittests.cpp
index 62fb91351b..e375a0f646 100644
--- a/plugins/clangstaticanalyzer/clangstaticanalyzerunittests.cpp
+++ b/plugins/clangstaticanalyzer/clangstaticanalyzerunittests.cpp
@@ -66,6 +66,7 @@ void ClangStaticAnalyzerUnitTests::initTestCase()
QSKIP("No clang suitable for analyzing found");
m_tmpDir = new CppTools::Tests::TemporaryCopiedDir(QLatin1String(":/unit-tests"));
+ QVERIFY(m_tmpDir->isValid());
}
void ClangStaticAnalyzerUnitTests::cleanupTestCase()
@@ -96,14 +97,14 @@ void ClangStaticAnalyzerUnitTests::testProject_data()
QTest::addColumn<int>("expectedDiagCount");
QTest::newRow("simple qbs project")
- << QString(m_tmpDir->path() + QLatin1String("/simple/simple.qbs")) << 1;
+ << QString(m_tmpDir->absolutePath("simple/simple.qbs")) << 1;
QTest::newRow("simple qmake project")
- << QString(m_tmpDir->path() + QLatin1String("/simple/simple.pro")) << 1;
+ << QString(m_tmpDir->absolutePath("simple/simple.pro")) << 1;
QTest::newRow("qt-widgets-app qbs project")
- << QString(m_tmpDir->path() + QLatin1String("/qt-widgets-app/qt-widgets-app.qbs")) << 0;
+ << QString(m_tmpDir->absolutePath("qt-widgets-app/qt-widgets-app.qbs")) << 0;
QTest::newRow("qt-widgets-app qmake project")
- << QString(m_tmpDir->path() + QLatin1String("/qt-widgets-app/qt-widgets-app.pro")) << 0;
+ << QString(m_tmpDir->absolutePath("qt-widgets-app/qt-widgets-app.pro")) << 0;
}
} // namespace Internal