Skip to content

Commit 600f46f

Browse files
committed
[tests] Update XcodeVersion test to compare Xcode versions only by Major and Minor.
1 parent 349aa05 commit 600f46f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/dotnet/UnitTests/XcodeVersionTest.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ public static object [] GetTestCases ()
1313
var rv = new List<object []> ();
1414
foreach (var platform in platforms) {
1515
foreach (var xcode in xcodes) {
16-
if (xcode.Version == Configuration.XcodeVersion)
17-
continue; // don't care about current Xcode version, that's tested everywhere else.
16+
var a = xcode.Version;
17+
var b = Configuration.XcodeVersion;
18+
if (a.Major == b.Major && a.Minor == b.Minor)
19+
continue; // don't care about current Xcode version (compared using Major.Minor only), that's tested everywhere else.
1820
rv.Add (new object [] { platform, xcode.Path, xcode.Version });
1921
}
2022
}

0 commit comments

Comments
 (0)