Skip to content

Commit d2541b3

Browse files
committed
Improve stability of Unity/Xamarin unit testing.
This commit avoids Mono's Regex StackOverflowException for non IL2CPP Unity builds and non AOT Xamarin builds.
1 parent b9e178c commit d2541b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/MsgPack.UnitTest/MessagePackObjectTest.Miscs.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region -- License Terms --
1+
#region -- License Terms --
22
//
33
// MessagePack for CLI
44
//
@@ -131,7 +131,7 @@ public void TestToString_ExtendedTypeObject_AsIs()
131131
[Test]
132132
public void TestToString_AllPossibleTypes_Success()
133133
{
134-
#if MONO || XAMDROID
134+
#if MONO || ENABLE_MONO || ( XAMARIN && !AOT )
135135
Assert.Inconclusive( "Mono Regex causes StackOverflow... ");
136136
#endif
137137
TestToStringCore(

0 commit comments

Comments
 (0)