diff --git a/kdevplatform/outputview/tests/test_outputmodel.cpp b/kdevplatform/outputview/tests/test_outputmodel.cpp --- a/kdevplatform/outputview/tests/test_outputmodel.cpp +++ b/kdevplatform/outputview/tests/test_outputmodel.cpp @@ -38,7 +38,13 @@ do { outputlines << buildCompilerActionLine(); outputlines << buildCppCheckInformationLine(); - for (TestPathType pathType : {UnixFilePathNoSpaces, UnixFilePathWithSpaces}) { + for (TestPathType pathType : +#ifdef Q_OS_WIN + {WindowsFilePathNoSpaces, WindowsFilePathWithSpaces} +#else + {UnixFilePathNoSpaces, UnixFilePathWithSpaces} +#endif + ) { outputlines << buildCompilerErrorLine(pathType); outputlines << buildCompilerLine(pathType); outputlines << buildCppCheckErrorLine(pathType);