Skip to content

Commit 88f005e

Browse files
author
Lukasz Mendakiewicz
committed
Merge fix-ups
1 parent f5d38f4 commit 88f005e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

GoogleTestAdapter/Core/GoogleTestDiscoverer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static bool IsGoogleTestExecutable(string executable, string customRegex,
9898
string googleTestIndicatorFile = $"{executable}{GoogleTestIndicator}";
9999
if (File.Exists(googleTestIndicatorFile))
100100
{
101-
_logger.DebugInfo(String.Format(Resources.FileFound, executable));
101+
logger.DebugInfo(String.Format(Resources.FileFound, executable));
102102
return true;
103103
}
104104

@@ -143,7 +143,7 @@ private static bool SafeMatches(string executable, string regex, ILogger logger)
143143

144144
private static bool VerifyExecutableTrust(string executable, ILogger logger)
145145
{
146-
var zone = Zone.CreateFromUrl(executable);
146+
var zone = Zone.CreateFromUrl(Path.GetFullPath(executable));
147147
if (zone.SecurityZone != System.Security.SecurityZone.MyComputer)
148148
{
149149
logger.LogError(String.Format(Resources.ExecutableError, executable));

GoogleTestAdapter/Core/Settings/SettingsWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public static string ReplacePlaceholders(string userParameters, string executabl
243243

244244
public static readonly string OptionTestDiscoveryRegex = Resources.OptionTestDiscoveryRegex;
245245
public const string OptionTestDiscoveryRegexDefaultValue = "";
246-
public static readonly string OptionTestDiscoveryRegexDescription = string.Format(Resources.OptionTestDiscoveryRegexDescription, TestFinderRegex);
246+
public static readonly string OptionTestDiscoveryRegexDescription = string.Format(Resources.OptionTestDiscoveryRegexDescription, String.Empty);
247247

248248
public virtual string TestDiscoveryRegex => _currentSettings.TestDiscoveryRegex ?? OptionTestDiscoveryRegexDefaultValue;
249249

GoogleTestAdapter/Tests.Common/TestResources.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static class TestResources
3434
public const string Tests_DebugX86 = SampleTestsBuildDir + @"Debug\Tests_gta.exe";
3535
public const string Tests_ReleaseX86 = SampleTestsBuildDir + @"Release\Tests_gta.exe";
3636
public const string Tests_DebugX86_Gtest170 = SampleTestsBuildDir + @"Debug\Tests_1.7.0_gta.exe";
37-
public const string Tests_DebugX64 = SampleTestsSolutionDir + @"Debug-x64\Tests_gta.exe";
37+
public const string Tests_DebugX64 = SampleTestsBuildDir + @"Debug-x64\Tests_gta.exe";
3838
public const string Tests_ReleaseX64 = SampleTestsBuildDir + @"Release-x64\Tests_gta.exe";
3939
public const string Tests_ReleaseX64_Output = TestdataDir + @"Tests_gta_exe_output.txt";
4040
public const int NrOfTests = 94;

0 commit comments

Comments
 (0)