Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Revert "Disable for coreclr#23583" (#36564)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdmaclea authored Apr 8, 2019
1 parent 37867bd commit 090f99d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions src/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ public static void DefaultAssemblyLoadContext_Properties()
Assert.Contains("\"Default\"", alc.ToString());
Assert.Contains("System.Runtime.Loader.DefaultAssemblyLoadContext", alc.ToString());
Assert.Contains(alc, AssemblyLoadContext.All);
#if CoreCLR_23583
Assert.Contains(Assembly.GetCallingAssembly(), alc.Assemblies);
#endif
}

[Fact]
Expand All @@ -161,9 +159,7 @@ public static void PublicConstructor_Default()
Assert.Contains("PublicConstructor", alc.ToString());
Assert.Contains("System.Runtime.Loader.AssemblyLoadContext", alc.ToString());
Assert.Contains(alc, AssemblyLoadContext.All);
#if CoreCLR_23583
Assert.Empty(alc.Assemblies);
#endif
}

[Theory]
Expand All @@ -179,9 +175,7 @@ public static void PublicConstructor_Theory(string name, bool isCollectible)
Assert.Contains(name, alc.ToString());
Assert.Contains("System.Runtime.Loader.AssemblyLoadContext", alc.ToString());
Assert.Contains(alc, AssemblyLoadContext.All);
#if CoreCLR_23583
Assert.Empty(alc.Assemblies);
#endif
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ public void LoadInDefaultContext()

// We should have successfully loaded the assembly in secondary load context.
Assert.NotNull(slcLoadedAssembly);
#if CoreCLR_23583
Assert.Contains(slcLoadedAssembly, slc.Assemblies);
#endif

// And make sure the simple name matches
Assert.Equal(TestAssemblyName, slcLoadedAssembly.GetName().Name);
Expand All @@ -129,9 +127,7 @@ public void LoadInDefaultContext()

// We should have successfully loaded the assembly in default context.
Assert.NotNull(assemblyExpectedFromLoad);
#if CoreCLR_23583
Assert.Contains(assemblyExpectedFromLoad, AssemblyLoadContext.Default.Assemblies);
#endif

// We should have only invoked non-Null returning handler once
Assert.Equal(1, _numNonNullResolutions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ public void Assembly_IsCollectibleFalse_WhenUsingAssemblyLoad()
Assert.Contains("\"Default\"", alc.ToString());
Assert.Contains("System.Runtime.Loader.DefaultAssemblyLoadContext", alc.ToString());
Assert.Contains(alc, AssemblyLoadContext.All);
#if CoreCLR_23583
Assert.Contains(asm, alc.Assemblies);
#endif
return RemoteExecutor.SuccessExitCode;
}).Dispose();
Expand All @@ -78,9 +76,7 @@ public void Assembly_IsCollectibleFalse_WhenUsingAssemblyLoadContext()
Assert.Contains("Assembly_IsCollectibleFalse_WhenUsingAssemblyLoadContext", alc.ToString());
Assert.Contains("System.Runtime.Loader.AssemblyLoadContext", alc.ToString());
Assert.Contains(alc, AssemblyLoadContext.All);
#if CoreCLR_23583
Assert.Contains(asm, alc.Assemblies);
#endif
return RemoteExecutor.SuccessExitCode;
}).Dispose();
Expand All @@ -103,9 +99,7 @@ public void Assembly_IsCollectibleTrue_WhenUsingTestAssemblyLoadContext()
Assert.Contains("\"\"", alc.ToString());
Assert.Contains("System.Reflection.Tests.TestAssemblyLoadContext", alc.ToString());
Assert.Contains(alc, AssemblyLoadContext.All);
#if CoreCLR_23583
Assert.Contains(asm, alc.Assemblies);
#endif
return RemoteExecutor.SuccessExitCode;
}).Dispose();
Expand Down

0 comments on commit 090f99d

Please sign in to comment.