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:
Markus Redeker
2025-03-25 11:47:05 +01:00
parent a51a334941
commit cc7e316a03

View File

@@ -52,8 +52,10 @@ FilePath CocoSettings::coverageBrowserPath() const
{
QString browserPath;
if (HostOsInfo::isAnyUnixHost() || HostOsInfo::isMacHost())
if (HostOsInfo::isAnyUnixHost())
browserPath = "bin/coveragebrowser";
else if (HostOsInfo::isMacHost())
browserPath = "coveragebrowser";
else
browserPath = "coveragebrowser.exe";