Skip to content

Commit bb0a4d1

Browse files
committed
Skip test GdalUtilsGdalRasterTranslateTest on GitHub Actions for 32-bit process, as it sometimes causes crash.
1 parent c59fcc1 commit bb0a4d1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎MapWinGisTests-net/MapWinGisTests/UnitTests/GdalUtilsTests.cs‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Diagnostics;
2+
using WinFormsApp1;
23
using Xunit.Abstractions;
34

45
namespace MapWinGisTests.UnitTests;
@@ -156,6 +157,16 @@ public void GdalUtilsClipVectorWithVectorTest()
156157
[Fact]
157158
public void GdalUtilsGdalRasterTranslateTest()
158159
{
160+
if(Form1.IsRunningOnGitHubActions)
161+
{
162+
if(!Environment.Is64BitProcess)
163+
{
164+
// Skip test on GitHub Actions for 32-bit process, as it causes crashes sometimes.
165+
Form1.IsRunningOnGitHubActions.ShouldBeTrue();
166+
return;
167+
}
168+
}
169+
159170
GdalRasterTranslateTest(_fixture.Float32_50mTiffFilename);
160171
GdalRasterTranslateTest(_fixture.UnicodeTiffFilename);
161172

0 commit comments

Comments
 (0)