Skip to content

Commit 73218c8

Browse files
committed
Skip failing tests
- #2578 - #2415 - #2579
1 parent 2a0cbf9 commit 73218c8

File tree

8 files changed

+184
-152
lines changed

8 files changed

+184
-152
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System.Threading.Tasks;
2+
using Xunit;
3+
4+
namespace ILLink.RoslynAnalyzer.Tests
5+
{
6+
public sealed partial class AdvancedTests : LinkerTestBase
7+
{
8+
protected override string TestSuiteName => "Advanced";
9+
10+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2415")]
11+
public Task TypeCheckRemoval ()
12+
{
13+
return RunTest (allowMissingWarnings: true);
14+
}
15+
}
16+
}
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
using System.Threading.Tasks;
2+
using Xunit;
3+
4+
namespace ILLink.RoslynAnalyzer.Tests
5+
{
6+
public sealed partial class ReflectionTests : LinkerTestBase
7+
{
8+
protected override string TestSuiteName => "Reflection";
9+
10+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
11+
public Task ActivatorCreateInstance ()
12+
{
13+
return RunTest (allowMissingWarnings: true);
14+
}
15+
16+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
17+
public Task AssemblyImportedViaReflectionWithSweptReferences ()
18+
{
19+
return RunTest (allowMissingWarnings: true);
20+
}
21+
22+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
23+
public Task ConstructorsUsedViaReflection ()
24+
{
25+
return RunTest (allowMissingWarnings: true);
26+
}
27+
28+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
29+
public Task ConstructorUsedViaReflection ()
30+
{
31+
return RunTest (allowMissingWarnings: true);
32+
}
33+
34+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
35+
public Task EventsUsedViaReflection ()
36+
{
37+
return RunTest (allowMissingWarnings: true);
38+
}
39+
40+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
41+
public Task ExpressionCallString ()
42+
{
43+
return RunTest (allowMissingWarnings: true);
44+
}
45+
46+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
47+
public Task ExpressionNewType ()
48+
{
49+
return RunTest (allowMissingWarnings: true);
50+
}
51+
52+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
53+
public Task ExpressionPropertyMethodInfo ()
54+
{
55+
return RunTest (allowMissingWarnings: true);
56+
}
57+
58+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
59+
public Task FieldsUsedViaReflection ()
60+
{
61+
return RunTest (allowMissingWarnings: true);
62+
}
63+
64+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
65+
public Task MembersUsedViaReflection ()
66+
{
67+
return RunTest (allowMissingWarnings: true);
68+
}
69+
70+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
71+
public Task MemberUsedViaReflection ()
72+
{
73+
return RunTest (allowMissingWarnings: true);
74+
}
75+
76+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
77+
public Task MethodsUsedViaReflection ()
78+
{
79+
return RunTest (allowMissingWarnings: true);
80+
}
81+
82+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
83+
public Task NestedTypesUsedViaReflection ()
84+
{
85+
return RunTest (allowMissingWarnings: true);
86+
}
87+
88+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
89+
public Task ObjectGetType ()
90+
{
91+
return RunTest (allowMissingWarnings: true);
92+
}
93+
94+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
95+
public Task PropertiesUsedViaReflection ()
96+
{
97+
return RunTest (allowMissingWarnings: true);
98+
}
99+
100+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
101+
public Task TypeHierarchyReflectionWarnings ()
102+
{
103+
return RunTest (allowMissingWarnings: true);
104+
}
105+
106+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
107+
public Task TypeHierarchySuppressions ()
108+
{
109+
return RunTest (allowMissingWarnings: true);
110+
}
111+
112+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
113+
public Task TypeUsedViaReflection ()
114+
{
115+
return RunTest (allowMissingWarnings: true);
116+
}
117+
118+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2578")]
119+
public Task TypeUsedViaReflectionTypeDoesntExist ()
120+
{
121+
return RunTest (allowMissingWarnings: true);
122+
}
123+
}
124+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System.Threading.Tasks;
2+
using Xunit;
3+
4+
namespace ILLink.RoslynAnalyzer.Tests
5+
{
6+
public sealed partial class UnreachableBlockTests : LinkerTestBase
7+
{
8+
protected override string TestSuiteName => "UnreachableBlock";
9+
10+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2415")]
11+
public Task TryFilterBlocks ()
12+
{
13+
return RunTest (allowMissingWarnings: true);
14+
}
15+
}
16+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System.Threading.Tasks;
2+
using Xunit;
3+
4+
namespace ILLink.RoslynAnalyzer.Tests.Warnings
5+
{
6+
public sealed partial class WarningSuppressionTests : LinkerTestBase
7+
{
8+
protected override string TestSuiteName => "Warnings.WarningSuppression";
9+
10+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2579")]
11+
public Task SuppressWarningsInCompilerGeneratedCode ()
12+
{
13+
return RunTest (allowMissingWarnings: true);
14+
}
15+
16+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2579")]
17+
public Task SuppressWarningsInMembersAndTypesUsingTarget ()
18+
{
19+
return RunTest (allowMissingWarnings: true);
20+
}
21+
22+
[Fact (Skip = "https://github.com/dotnet/linker/issues/2579")]
23+
public Task SuppressWarningsViaXml ()
24+
{
25+
return RunTest (allowMissingWarnings: true);
26+
}
27+
}
28+
}

test/ILLink.RoslynAnalyzer.Tests/generated/ILLink.RoslynAnalyzer.Tests.Generator/ILLink.RoslynAnalyzer.Tests.TestCaseGenerator/AdvancedTests.g.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ namespace ILLink.RoslynAnalyzer.Tests
77
public sealed partial class AdvancedTests : LinkerTestBase
88
{
99

10-
protected override string TestSuiteName => "Advanced";
11-
1210
[Fact]
1311
public Task DeadCodeElimination1 ()
1412
{
@@ -21,12 +19,6 @@ public Task FieldThatOnlyGetsSetIsRemoved ()
2119
return RunTest (allowMissingWarnings: true);
2220
}
2321

24-
[Fact]
25-
public Task TypeCheckRemoval ()
26-
{
27-
return RunTest (allowMissingWarnings: true);
28-
}
29-
3022
[Fact]
3123
public Task TypeCheckRemovalDisabled ()
3224
{

0 commit comments

Comments
 (0)