Commit 3dae4914 authored by Morten Volden's avatar Morten Volden

Make test outputmodel pass on windows.

Summary: When doing the benchmark test on windows. Make sure that we use windows paths. Otherwise the test will fail (in debug builds) in an assert in util/path.cpp

Test Plan: Run the test in a Windows debug build environment. Before patch it fails. After patch is applied it succeeds. Run test on Linux and see that test stil completes

Reviewers: #kdevelop, kfunk

Reviewed By: #kdevelop, kfunk

Subscribers: kdevelop-devel

Tags: #kdevelop

Differential Revision:
parent e2d5023e
......@@ -38,7 +38,13 @@ QStringList generateLines()
do {
outputlines << buildCompilerActionLine();
outputlines << buildCppCheckInformationLine();
for (TestPathType pathType : {UnixFilePathNoSpaces, UnixFilePathWithSpaces}) {
for (TestPathType pathType :
#ifdef Q_OS_WIN
{WindowsFilePathNoSpaces, WindowsFilePathWithSpaces}
{UnixFilePathNoSpaces, UnixFilePathWithSpaces}
) {
outputlines << buildCompilerErrorLine(pathType);
outputlines << buildCompilerLine(pathType);
outputlines << buildCppCheckErrorLine(pathType);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment