Skip to content

Commit d9e1ee1

Browse files
authored
Run tests that requires more than 2 Gb of Memory only on 64-bit env (#6758)
1 parent 69eca56 commit d9e1ee1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/Microsoft.Data.Analysis.Tests/BufferTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Linq;
88
using System.Text;
99
using Apache.Arrow;
10+
using Microsoft.ML.TestFramework.Attributes;
1011
using Xunit;
1112

1213
namespace Microsoft.Data.Analysis.Tests
@@ -188,16 +189,15 @@ public void TestArrowStringColumnClone()
188189
Assert.Null(clone[i]);
189190
}
190191

191-
/* Don't run tests during build as they fail, because build if build machine doesn't have enought memory
192-
[Fact]
192+
[X64Fact("32-bit dosn't allow to allocate more than 2 Gb")]
193193
public void TestAppend_SizeMoreThanMaxBufferCapacity()
194194
{
195195
//Check appending value, than can increase buffer size over MaxCapacity (default strategy is to double buffer capacity)
196196
PrimitiveDataFrameColumn<byte> intColumn = new PrimitiveDataFrameColumn<byte>("Byte1", int.MaxValue / 2 - 1);
197197
intColumn.Append(10);
198198
}
199199

200-
[Fact]
200+
[X64Fact("32-bit dosn't allow to allocate more than 2 Gb")]
201201
public void TestAppendMany_SizeMoreThanMaxBufferCapacity()
202202
{
203203
const int MaxCapacityInBytes = 2147483591;
@@ -208,7 +208,6 @@ public void TestAppendMany_SizeMoreThanMaxBufferCapacity()
208208

209209
Assert.Equal(MaxCapacityInBytes + 5, intColumn.Length);
210210
}
211-
*/
212211

213212
//#if !NETFRAMEWORK // https://github.com/dotnet/corefxlab/issues/2796
214213
// [Fact]

0 commit comments

Comments
 (0)