You've already forked linux-packaging-mono
Imported Upstream version 5.14.0.78
Former-commit-id: 3494343bcc9ddb42b36b82dd9ae7b69e85e0229f
This commit is contained in:
parent
74b74abd9f
commit
19234507ba
@@ -27,7 +27,9 @@ namespace System.Text
|
||||
// object unless specified otherwise. This class may be used in conjunction with the String
|
||||
// class to carry out modifications upon strings.
|
||||
[Serializable]
|
||||
#if !MONO
|
||||
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
|
||||
#endif
|
||||
public sealed partial class StringBuilder : ISerializable
|
||||
{
|
||||
// A StringBuilder is internally represented as a linked list of blocks each of which holds
|
||||
|
@@ -192,6 +192,7 @@ namespace System.Collections.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Flaky test - OOM")]
|
||||
public static void Ctor_LargeIntArrayOverflowingBitArray_ThrowsArgumentException()
|
||||
{
|
||||
AssertExtensions.Throws<ArgumentException>("values", () => new BitArray(new int[int.MaxValue / BitsPerInt32 + 1 ]));
|
||||
@@ -231,6 +232,7 @@ namespace System.Collections.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Flaky test - OOM")]
|
||||
public static void Ctor_LargeByteArrayOverflowingBitArray_ThrowsArgumentException()
|
||||
{
|
||||
AssertExtensions.Throws<ArgumentException>("bytes", () => new BitArray(new byte[int.MaxValue / BitsPerByte + 1 ]));
|
||||
@@ -250,6 +252,7 @@ namespace System.Collections.Tests
|
||||
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "A bug in BitArray.Clone() caused an ArgumentExeption to be thrown in this case.")]
|
||||
[Fact]
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Flaky test - OOM")]
|
||||
public static void Clone_LongLength_Works()
|
||||
{
|
||||
BitArray bitArray = new BitArray(int.MaxValue - 30);
|
||||
|
@@ -27,6 +27,9 @@ namespace System.Drawing
|
||||
}
|
||||
else
|
||||
{
|
||||
#if MONO
|
||||
return true;
|
||||
#else
|
||||
IntPtr nativeLib;
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||
{
|
||||
@@ -42,6 +45,7 @@ namespace System.Drawing
|
||||
}
|
||||
|
||||
return nativeLib != IntPtr.Zero;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -185,6 +185,7 @@ namespace System.Drawing.Tests
|
||||
}
|
||||
|
||||
[ConditionalFact(Helpers.GdiplusIsAvailable)]
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono)]
|
||||
public void SetTabStops_NegativeFirstTabOffset_ThrowsArgumentException()
|
||||
{
|
||||
using (var format = new StringFormat())
|
||||
@@ -194,6 +195,7 @@ namespace System.Drawing.Tests
|
||||
}
|
||||
|
||||
[ConditionalFact(Helpers.GdiplusIsAvailable)]
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono)]
|
||||
public void SetTabStops_NegativeInfinityInTabStops_ThrowsNotImplementedException()
|
||||
{
|
||||
using (var format = new StringFormat())
|
||||
@@ -308,6 +310,7 @@ namespace System.Drawing.Tests
|
||||
}
|
||||
|
||||
[ConditionalFact(Helpers.GdiplusIsAvailable)]
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono)]
|
||||
public void DigitSubstitutionLanguage_GetSetWhenDisposed_ThrowsArgumentException()
|
||||
{
|
||||
var format = new StringFormat();
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
#if MONO
|
||||
#if MONO && !MOBILE
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
@@ -8,7 +8,7 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
#if MONO
|
||||
#if MONO && !MOBILE
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
@@ -54,6 +54,7 @@ namespace System.IO.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")]
|
||||
public void FileSystemWatcher_EmptyAction_TriggersNothing()
|
||||
{
|
||||
using (var testDirectory = new TempDirectory(GetTestFilePath()))
|
||||
|
@@ -7,6 +7,9 @@ using System.IO;
|
||||
using System.Runtime;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
#if MONO
|
||||
using Fx = System.Runtime.Fx;
|
||||
#endif
|
||||
|
||||
|
||||
namespace System.Xml
|
||||
|
@@ -1081,6 +1081,16 @@ namespace System.Text.RegularExpressions
|
||||
|
||||
protected bool UseOptionC()
|
||||
{
|
||||
#if MOBILE
|
||||
return false;
|
||||
#elif MONO
|
||||
// This is here so we can debug this issue: https://github.com/mono/mono/pull/7982,
|
||||
// once that is fixed, we can remove this. Disabling it completely for mobile
|
||||
// as we are not likely to debug the threading issue there.
|
||||
if (Environment.GetEnvironmentVariable ("MONO_REGEX_COMPILED_ENABLE") == null)
|
||||
return false;
|
||||
#endif
|
||||
|
||||
return (roptions & RegexOptions.Compiled) != 0;
|
||||
}
|
||||
|
||||
|
@@ -993,6 +993,7 @@ namespace System.Threading.Tasks.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "https://github.com/mono/mono/issues/7992")]
|
||||
public static void TestInvokeDOPAndCancel()
|
||||
{
|
||||
ParallelOptions parallelOptions = null;
|
||||
|
Reference in New Issue
Block a user