Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Retreiving standalone signature not supported on mono
  • Loading branch information
buyaa-n committed Jan 18, 2024
commit f36b7cded294d07962060856843c5fa8ec1beb7d
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public void DefineInitializedData_Validations()
Assert.Throws<InvalidOperationException>(() => module.DefineInitializedData("MyField2", new byte[] { 1, 0, 1 }, FieldAttributes.Public));
}

// Field alignment is not working on mono
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotMonoRuntime))]
public void DefineInitializedData_EnsureAlignmentIsMinimumNeededForUseOfCreateSpan()
{
Expand Down Expand Up @@ -259,6 +260,8 @@ void CheckMethod(string name, int minAlignmentRequired, byte[] dataToVerify)
}

[Fact]
// Standalone signature is not supported on mono
[ActiveIssue("https://github.com/dotnet/runtime/issues/96389", TestRuntimes.Mono)]
public void GetABCMetadataToken_Validations()
{
AssemblyBuilder ab = AssemblySaveTools.PopulateAssemblyBuilderAndSaveMethod(new AssemblyName("MyAssembly"), out MethodInfo _);
Expand All @@ -273,9 +276,7 @@ public void GetABCMetadataToken_Validations()
Assert.Throws<InvalidOperationException>(() => module.GetFieldMetadataToken(field));
Assert.Throws<InvalidOperationException>(() => module.GetTypeMetadataToken(type));

SignatureHelper signature = SignatureHelper.GetMethodSigHelper(CallingConventions.VarArgs, typeof(void));
signature.AddArgument(typeof(string));
signature.AddSentinel();
SignatureHelper signature = SignatureHelper.GetMethodSigHelper(CallingConventions.HasThis, typeof(void));
signature.AddArgument(typeof(string));
signature.AddArgument(typeof(int));

Expand Down