Skip to content

Commit

Permalink
Add [Fact] attributes to JIT regression tests (#61540)
Browse files Browse the repository at this point in the history
For now there's no functional change to the behavior of the tests,
I have just copied the bits to inject from Jeremy's example in his
pending PR.

I have spot-checked that some of the tests use Main with the
command-line args argument. I'm not changing them in this PR, the
signature only becomes important once we start actually merging
the IL tests and I presume we'll clean that up at that point.

Thanks

Tomas

Contributes to: #54512
  • Loading branch information
trylek authored Nov 14, 2021
1 parent d722224 commit d3a8a27
Show file tree
Hide file tree
Showing 525 changed files with 5,258 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
}
.assembly 'c'// as "c"
{ }
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'c.exe'
.namespace JitTest
{
Expand All @@ -19,6 +26,9 @@
{
.method private hidebysig static int32 Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 30
.locals (int32 V_0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
// bool) = ( 01 00 00 01 00 00 )


}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'b.exe'
// MVID: {0573B9C2-3980-4A83-9B01-889CCC1D6FBC}
Expand All @@ -29,6 +36,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
// Code size 31 (0x1f)
.maxstack 6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
.ver 4:0:0:0
}
.assembly b26323 { }
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.namespace Test
{
.class auto ansi App extends [mscorlib]System.Object
Expand All @@ -28,6 +35,9 @@

.method private static int32 Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 2
.locals ([0] class Test.App app)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@
.ver 4:0:0:0
}
.assembly ILGEN_0x917e8626 {}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.class ILGEN_0x917e8626 {
.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 20
ldc.i4 0xFFFFFFF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

.assembly extern legacy library mscorlib {}
.assembly b47392 { }
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.namespace Test
{
.class private auto ansi AA extends [mscorlib]System.Object
Expand All @@ -12,6 +19,9 @@

.method private hidebysig static int32 Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 8
.locals (class Test.AA, int32 i)
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b15244/b15244.il
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
.assembly b15244
{
}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.class public auto ansi AA extends [mscorlib]System.Object
{

Expand All @@ -25,6 +32,9 @@
{
.method static int32 Main()
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 4
.locals (int32)
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b16039/b16039.il
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
.assembly bug
{
}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.class public auto ansi AA extends [mscorlib]System.Object
{

Expand Down Expand Up @@ -63,6 +70,9 @@
{
.method static int32 Main()
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 8
.locals (int32)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
{


}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.namespace Test
{
Expand Down Expand Up @@ -126,6 +133,9 @@
.field private static initonly class [mscorlib]System.String expResult
.method private static int32 Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 12
.locals ([0] class Test.GCClass inst)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
{


}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.namespace Test
{
Expand Down Expand Up @@ -126,6 +133,9 @@
.field private static initonly class [mscorlib]System.String expResult
.method private static int32 Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 12
.locals ([0] class Test.GCClass inst)
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b29583/b29583.il
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,23 @@
.ver 4:0:0:0
}
.assembly 'box' { }
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}

.namespace BoxTest
{
.class auto ansi App extends [mscorlib]System.Object
{
.method private static int32 Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 3
.locals (class [mscorlib]System.Object obj, float64 F)
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b30125/b30125.il
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
.ver 4:0:0:0
}
.assembly ILGEN_0x5a59b03c {}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.class ILGEN_0x5a59b03c {
.method static int32 Method_0x1001() {
.maxstack 3
Expand All @@ -20,6 +27,9 @@
ret
}
.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 2
call int32 ILGEN_0x5a59b03c::Method_0x1001()
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b30862/b30862.il
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
.ver 4:0:0:0
}
.assembly ILGEN_0xe741640 {}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.class ILGEN_0xe741640 {
.field static int64 field_0x1
.field static float32[] field_0x4
Expand Down Expand Up @@ -80,6 +87,9 @@ End_Orphan_0:
ret
}
.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 2
call int32 ILGEN_0xe741640::Method_0x6401()
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b30864/b30864.il
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
.ver 4:0:0:0
}
.assembly 'typedref' { }
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.namespace BoxTest
{
.class auto ansi Test extends [mscorlib]System.Object
Expand Down Expand Up @@ -139,6 +146,9 @@

.method private hidebysig static int32 Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
// Code size 67 (0x43)
.maxstack 3
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b30892/b30892.il
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
.ver 4:0:0:0
}
.assembly ILGEN_0xedada940 {}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.class ILGEN_0xedada940 {
.method static int32 Method_0x7f75() {
.maxstack 17
Expand Down Expand Up @@ -85,6 +92,9 @@ End_Orphan_12:
ret
}
.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 2
call int32 ILGEN_0xedada940::Method_0x7f75()
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b31102/b31102.il
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
.ver 4:0:0:0
}
.assembly ILGEN_0xed342785 {}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.class ILGEN_0xed342785 {
.method static int32 Method_0x287e() {
.maxstack 13
Expand All @@ -34,6 +41,9 @@ End_Orphan_9:
ret
}
.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 2
.try {
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b31273/b31273.il
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
.ver 4:0:0:0
}
.assembly ILGEN_0xf0dc526d {}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.class ILGEN_0xf0dc526d {
.method static int32 Method_0x1672(int64 Arg_0x5) {
.maxstack 13
Expand All @@ -30,6 +37,9 @@ End_Orphan_6:
}

.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 20
.try {
Expand Down
Loading

0 comments on commit d3a8a27

Please sign in to comment.