Skip to content

Commit d722224

Browse files
authored
Add [Fact] attributes to methodical JIT tests (#61536)
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. Thanks Tomas Contributes to: #54512
1 parent 5da8f31 commit d722224

395 files changed

Lines changed: 3950 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/tests/JIT/Methodical/Arrays/huge/huge_b.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525

2626

2727

28+
}
29+
.assembly extern xunit.core
30+
{
31+
.publickeytoken = (
32+
8d 05 b1 bb 7a 6f db 6c
33+
)
34+
.ver 2:4:2:0
2835
}
2936
.module 'test.exe'
3037
.namespace JitTest
@@ -35,6 +42,9 @@
3542
.method private hidebysig static int32
3643
Main() il managed
3744
{
45+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
46+
01 00 00 00
47+
)
3848
.entrypoint
3949
.maxstack 70
4050
.locals (bool[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,

src/tests/JIT/Methodical/Arrays/huge/huge_i4.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525

2626

2727

28+
}
29+
.assembly extern xunit.core
30+
{
31+
.publickeytoken = (
32+
8d 05 b1 bb 7a 6f db 6c
33+
)
34+
.ver 2:4:2:0
2835
}
2936
.module 'test.exe'
3037
.namespace JitTest
@@ -35,6 +42,9 @@
3542
.method private hidebysig static int32
3643
Main() il managed
3744
{
45+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
46+
01 00 00 00
47+
)
3848
.entrypoint
3949
.maxstack 70
4050
.locals (int32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,

src/tests/JIT/Methodical/Arrays/huge/huge_objref.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
.assembly 'test'
1919
{
2020
}
21+
.assembly extern xunit.core
22+
{
23+
.publickeytoken = (
24+
8d 05 b1 bb 7a 6f db 6c
25+
)
26+
.ver 2:4:2:0
27+
}
2128
.module 'test.exe'
2229
.namespace JitTest
2330
{
@@ -48,6 +55,9 @@
4855
.method private hidebysig static int32
4956
Main() il managed
5057
{
58+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
59+
01 00 00 00
60+
)
5161
.entrypoint
5262
.maxstack 70
5363
.locals (class JitTest.TestClass[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,

src/tests/JIT/Methodical/Arrays/huge/huge_r4.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525

2626

2727

28+
}
29+
.assembly extern xunit.core
30+
{
31+
.publickeytoken = (
32+
8d 05 b1 bb 7a 6f db 6c
33+
)
34+
.ver 2:4:2:0
2835
}
2936
.module 'test.exe'
3037
.namespace JitTest
@@ -35,6 +42,9 @@
3542
.method private hidebysig static int32
3643
Main() il managed
3744
{
45+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
46+
01 00 00 00
47+
)
3848
.entrypoint
3949
.maxstack 70
4050
.locals (float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,

src/tests/JIT/Methodical/Arrays/huge/huge_r8.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525

2626

2727

28+
}
29+
.assembly extern xunit.core
30+
{
31+
.publickeytoken = (
32+
8d 05 b1 bb 7a 6f db 6c
33+
)
34+
.ver 2:4:2:0
2835
}
2936
.module 'test.exe'
3037
.namespace JitTest
@@ -35,6 +42,9 @@
3542
.method private hidebysig static int32
3643
Main() il managed
3744
{
45+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
46+
01 00 00 00
47+
)
3848
.entrypoint
3949
.maxstack 70
4050
.locals (float64[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,

src/tests/JIT/Methodical/Arrays/huge/huge_struct.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525

2626

2727

28+
}
29+
.assembly extern xunit.core
30+
{
31+
.publickeytoken = (
32+
8d 05 b1 bb 7a 6f db 6c
33+
)
34+
.ver 2:4:2:0
2835
}
2936
.module 'test.exe'
3037
.namespace JitTest
@@ -43,6 +50,9 @@
4350
.method private hidebysig static int32
4451
Main() il managed
4552
{
53+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
54+
01 00 00 00
55+
)
4656
.entrypoint
4757
.maxstack 70
4858
.locals (value class JitTest.TestStruct[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,

src/tests/JIT/Methodical/Arrays/huge/huge_u8.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525

2626

2727

28+
}
29+
.assembly extern xunit.core
30+
{
31+
.publickeytoken = (
32+
8d 05 b1 bb 7a 6f db 6c
33+
)
34+
.ver 2:4:2:0
2835
}
2936
.module 'test.exe'
3037
.namespace JitTest
@@ -35,6 +42,9 @@
3542
.method private hidebysig static int32
3643
Main() il managed
3744
{
45+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
46+
01 00 00 00
47+
)
3848
.entrypoint
3949
.maxstack 70
4050
.locals (unsigned int64[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,

src/tests/JIT/Methodical/Arrays/huge_struct.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
// bool) = ( 01 00 00 01 00 00 )
2020

2121

22+
}
23+
.assembly extern xunit.core
24+
{
25+
.publickeytoken = (
26+
8d 05 b1 bb 7a 6f db 6c
27+
)
28+
.ver 2:4:2:0
2229
}
2330
.module 'huge_strcut.exe'
2431
// MVID: {23E3D49B-6CFD-4DA0-8C9D-A611CE0BA103}
@@ -38,6 +45,9 @@
3845
.method private hidebysig static int32
3946
Main() il managed
4047
{
48+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
49+
01 00 00 00
50+
)
4151
.entrypoint
4252
// Code size 38 (0x26)
4353
.maxstack 70

src/tests/JIT/Methodical/Arrays/lcs/lcs_ldlen.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020

2121

2222

23+
}
24+
.assembly extern xunit.core
25+
{
26+
.publickeytoken = (
27+
8d 05 b1 bb 7a 6f db 6c
28+
)
29+
.ver 2:4:2:0
2330
}
2431
.module 'lcs.exe'
2532
// MVID: {52ED7FCA-78F1-42F6-8DE5-7388302AFAA6}
@@ -603,6 +610,9 @@
603610
.method private hidebysig static int32
604611
Main() il managed
605612
{
613+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
614+
01 00 00 00
615+
)
606616
.entrypoint
607617
// Code size 227 (0xe3)
608618
.maxstack 5

src/tests/JIT/Methodical/Arrays/misc/address.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
.assembly 'test'
2020
{
2121
}
22+
.assembly extern xunit.core
23+
{
24+
.publickeytoken = (
25+
8d 05 b1 bb 7a 6f db 6c
26+
)
27+
.ver 2:4:2:0
28+
}
2229
.module 'test.exe'
2330
.namespace JitTest
2431
{
@@ -102,6 +109,9 @@
102109
.method private hidebysig static int32
103110
Main() il managed
104111
{
112+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
113+
01 00 00 00
114+
)
105115
.entrypoint
106116
.maxstack 4
107117
.locals (int32[10000...10005] V_0,

0 commit comments

Comments
 (0)