Skip to content

Commit 30cad99

Browse files
Exclude multi-threaded test for net80
1 parent 3ce74e9 commit 30cad99

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

ICSharpCode.AvalonEdit.Tests/MultipleUIThreads.cs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using System;
2020
using System.Threading;
2121
using System.Windows;
22+
2223
using NUnit.Framework;
2324

2425
namespace ICSharpCode.AvalonEdit
@@ -27,7 +28,21 @@ namespace ICSharpCode.AvalonEdit
2728
public class MultipleUIThreads
2829
{
2930
Exception error;
30-
31+
32+
/* NET80 error on GH CI:
33+
The active test run was aborted. Reason: Test host process crashed : Process terminated. Encountered infinite recursion while looking up resource 'Arg_NullReferenceException' in System.Private.CoreLib. Verify the installation of .NET is complete and does not need repairing, and that the state of the process has not become corrupted.
34+
at System.Environment.FailFast(System.String)
35+
at System.SR.InternalGetResourceString(System.String)
36+
at System.SR.GetResourceString(System.String)
37+
at System.NullReferenceException..ctor()
38+
at System.Resources.ResourceManager.GetString(System.String, System.Globalization.CultureInfo)
39+
at System.SR.InternalGetResourceString(System.String)
40+
at System.SR.GetResourceString(System.String)
41+
at System.NullReferenceException..ctor()
42+
at System.Threading.Thread.get_CurrentThread()
43+
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
44+
*/
45+
#if !NET8_0_OR_GREATER
3146
[Test]
3247
public void CreateEditorInstancesOnMultipleUIThreads()
3348
{
@@ -42,7 +57,7 @@ public void CreateEditorInstancesOnMultipleUIThreads()
4257
if (error != null)
4358
throw new InvalidOperationException(error.Message, error);
4459
}
45-
60+
#endif
4661
[STAThread]
4762
void Run()
4863
{

0 commit comments

Comments
 (0)