Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-11-11 20:42:26 +0400
committerBen Straub <bs@github.com>2013-11-11 20:54:39 +0400
commit1679067e35348335130e6c7a206f497e1c378d73 (patch)
tree7ddd35a21f05259c8373620664c37c81ddfc4474 /LibGit2Sharp.Tests/ShadowCopyFixture.cs
parent94aeb13043c31246348ecb399639c7779410d807 (diff)
Fix broken tests on OS X
Diffstat (limited to 'LibGit2Sharp.Tests/ShadowCopyFixture.cs')
-rw-r--r--LibGit2Sharp.Tests/ShadowCopyFixture.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/LibGit2Sharp.Tests/ShadowCopyFixture.cs b/LibGit2Sharp.Tests/ShadowCopyFixture.cs
index 3264b118..c5336685 100644
--- a/LibGit2Sharp.Tests/ShadowCopyFixture.cs
+++ b/LibGit2Sharp.Tests/ShadowCopyFixture.cs
@@ -51,6 +51,11 @@ namespace LibGit2Sharp.Tests
// ...but are currently loaded from different locations...
string cachedAssemblyLocation = wrapper.AssemblyLocation;
+ if (cachedAssemblyLocation.StartsWith("/private"))
+ {
+ // On OS X, sometimes you get /private/var/… instead of /var/…, but they map to the same place.
+ cachedAssemblyLocation = cachedAssemblyLocation.Substring("/private".Length);
+ }
Assert.NotEqual(sourceAssembly.Location, cachedAssemblyLocation);
// ...that the assembly in the other domain is stored in the shadow copy cache...