Skip to content

ENC attributes are generated in different orders for different runtimes #73513

@jaredpar

Description

@jaredpar

In moving to the net9.0 runtime we discovered that a number of ENC tests have different custom attribute output ordering. This is likely from a non-deterministic source in the delta generator. It could also possibly be a change in runtime behavior but that seems unlikely.

  g.VerifyCustomAttributes(
  [
      new CustomAttributeRow(Handle(8, TableIndex.MethodDef), Handle(3, TableIndex.MethodDef)),
      new CustomAttributeRow(Handle(8, TableIndex.MethodDef), Handle(5, TableIndex.MethodDef)),
      new CustomAttributeRow(Handle(8, TableIndex.MethodDef), Handle(6, TableIndex.MethodDef)),
      new CustomAttributeRow(Handle(10, TableIndex.MethodDef), Handle(4, TableIndex.MethodDef)),
      new CustomAttributeRow(Handle(10, TableIndex.MethodDef), Handle(7, TableIndex.MethodDef)),
  ]);

Discovered in #73408

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions