forked from qt-creator/qt-creator
Coco Plugin bug fix: Wrong path to CoverageScanner under macOS
When manually setting the Coco directory on the plugin settings page, the plugin automatically verifies the directory by checking that it contains the CoverageBrowser at the expected place. With the wrong relative path, checking always failed. Change-Id: I46d2127d6b2a7d2e1afc15963f1604694d6461cb Reviewed-by: Markus Redeker <markus.redeker@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -52,8 +52,10 @@ FilePath CocoSettings::coverageBrowserPath() const
|
|||||||
{
|
{
|
||||||
QString browserPath;
|
QString browserPath;
|
||||||
|
|
||||||
if (HostOsInfo::isAnyUnixHost() || HostOsInfo::isMacHost())
|
if (HostOsInfo::isAnyUnixHost())
|
||||||
browserPath = "bin/coveragebrowser";
|
browserPath = "bin/coveragebrowser";
|
||||||
|
else if (HostOsInfo::isMacHost())
|
||||||
|
browserPath = "coveragebrowser";
|
||||||
else
|
else
|
||||||
browserPath = "coveragebrowser.exe";
|
browserPath = "coveragebrowser.exe";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user