Skip to content

Commit d459c65

Browse files
authored
Add [Fact] attributes to all remaining ilproj tests (#61625)
1 parent c66fa99 commit d459c65

File tree

468 files changed

+1874
-2
lines changed

Some content is hidden

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

468 files changed

+1874
-2
lines changed

src/tests/JIT/BBT/Scenario4/Not-Int32.il

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
// NOT Int32 Example in IL
55
.assembly extern legacy library mscorlib {}
6+
.assembly extern xunit.core {}
67
.assembly extern System.Console
78
{
89
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
@@ -15,6 +16,9 @@
1516
{
1617
.method public static int32 Main()
1718
{
19+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
20+
01 00 00 00
21+
)
1822
.entrypoint
1923
.maxstack 2
2024
.locals init (int32 ReturnValue)

src/tests/JIT/Directed/Convert/implicitConv.il

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
77
.ver 4:0:0:0
88
}
9+
.assembly extern xunit.core {}
910

1011
.assembly ILGEN_0xc60e022c {}
1112
.assembly extern mscorlib{auto}
@@ -22,6 +23,9 @@
2223
ret
2324
}
2425
.method static int32 Main() {
26+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
27+
01 00 00 00
28+
)
2529
.entrypoint
2630
.maxstack 15
2731

src/tests/JIT/Directed/Convert/ldind_conv.il

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44

55
.assembly extern mscorlib { auto }
6+
.assembly extern xunit.core {}
67
.assembly extern System.Console { auto }
78
.assembly extern System.Runtime { auto }
89

@@ -20,6 +21,9 @@
2021

2122
.method private hidebysig static int32 Main() cil managed
2223
{
24+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
25+
01 00 00 00
26+
)
2327
.entrypoint
2428
.maxstack 8
2529

src/tests/JIT/Directed/Convert/minopts_convu1.il

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
77
.ver 4:0:0:0
88
}
9+
.assembly extern xunit.core {}
910

1011
.assembly ILGEN_0xb0847955 {}
1112
.assembly extern mscorlib{auto}
@@ -24,6 +25,9 @@
2425
}
2526

2627
.method static int32 Main() {
28+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
29+
01 00 00 00
30+
)
2731
.entrypoint
2832
.maxstack 23
2933

src/tests/JIT/Directed/Convert/signed_overflow_conversions_are_not_treated_as_unsigned.il

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
.assembly extern System.Console { auto }
5+
.assembly extern xunit.core {}
56
.assembly extern System.Runtime { auto }
67
.assembly SignedOverflowConversionsAreNotTreatedAsUnsigned { }
78

@@ -16,6 +17,9 @@
1617

1718
.method private hidebysig static int32 Main() cil managed
1819
{
20+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
21+
01 00 00 00
22+
)
1923
.entrypoint
2024
.locals init
2125
(

src/tests/JIT/Directed/ExcepFilters/excepobj/excepobj.il

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
.assembly extern legacy library mscorlib {}
5+
.assembly extern xunit.core {}
56
.assembly extern System.Console
67
{
78
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
@@ -18,6 +19,9 @@
1819
{
1920
.method public static int32 Main(class [mscorlib]System.String[] args) il managed
2021
{
22+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
23+
01 00 00 00
24+
)
2125
.entrypoint
2226
.maxstack 2
2327
.locals (int32 V_0)

src/tests/JIT/Directed/ExcepFilters/fault/fault.il

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
.assembly extern legacy library mscorlib {}
5+
.assembly extern xunit.core {}
56
.assembly extern System.Console
67
{
78
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
@@ -16,6 +17,9 @@
1617
{
1718
.method public static int32 Main(class [mscorlib]System.String[] args) il managed
1819
{
20+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
21+
01 00 00 00
22+
)
1923
.entrypoint
2024
// Code size 63 (0x3f)
2125
.maxstack 3

src/tests/JIT/Directed/ExcepFilters/mixed/mixed.il

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
.assembly extern legacy library mscorlib {}
5+
.assembly extern xunit.core {}
56
.assembly extern System.Console
67
{
78
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
@@ -51,6 +52,9 @@
5152
{
5253
.method public static int32 Main(class [mscorlib]System.String[] args) il managed
5354
{
55+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
56+
01 00 00 00
57+
)
5458
.entrypoint
5559
// Code size 63 (0x3f)
5660
.maxstack 3

src/tests/JIT/Directed/ExcepFilters/mixed3/mixed3.il

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
88
.ver 4:0:0:0
99
}
10+
.assembly extern xunit.core {}
1011

1112
.assembly extern legacy library mscorlib {}
1213
.assembly mixed3
@@ -19,6 +20,9 @@
1920
.field public static int32 exitcode
2021
.method public static int32 Main(string[] args) il managed
2122
{
23+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
24+
01 00 00 00
25+
)
2226
.entrypoint
2327
.maxstack 2
2428

src/tests/JIT/Directed/FaultHandlers/CallOrder/CallOrder.il

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
.assembly extern legacy library mscorlib {}
5+
.assembly extern xunit.core {}
56
.assembly extern System.Console
67
{
78
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
@@ -110,6 +111,9 @@
110111

111112
.method public static int32 Main(class [mscorlib]System.String[]) il managed
112113
{
114+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
115+
01 00 00 00
116+
)
113117
.entrypoint
114118
.locals (int32)
115119

0 commit comments

Comments
 (0)