summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/src/Interop/ICustomMarshaler/ConflictingNames/RunInALC.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/src/Interop/ICustomMarshaler/ConflictingNames/RunInALC.cs b/tests/src/Interop/ICustomMarshaler/ConflictingNames/RunInALC.cs
index 1d61f2deaf..fdae979445 100644
--- a/tests/src/Interop/ICustomMarshaler/ConflictingNames/RunInALC.cs
+++ b/tests/src/Interop/ICustomMarshaler/ConflictingNames/RunInALC.cs
@@ -46,6 +46,7 @@ public class RunInALC
object instance = Activator.CreateInstance(inContextType);
MethodInfo parseIntMethod = inContextType.GetMethod("ParseInt", BindingFlags.Instance | BindingFlags.Public);
Assert.AreEqual(1234, (int)parseIntMethod.Invoke(instance, new object[]{"1234"}));
+ GC.KeepAlive(context);
}
}