Skip to content

Commit e7db72a

Browse files
test: Don't compile ArchiveUtilsTests for Android
Assembly.Location is empty on Android, so the static initializer threw and every test in the class failed on the device runs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 1642213 commit e7db72a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎test/Sentry.Android.AssemblyReader.Tests/ArchiveUtilsTests.cs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
namespace Sentry.Android.AssemblyReader.Tests;
55

6+
// Assembly.Location is empty on Android, where assemblies load from the APK. The device run covers
7+
// decompression through AndroidAssemblyReaderTests.ReadsAssembly instead.
8+
#if !ANDROID
69
public class ArchiveUtilsTests
710
{
811
private const uint Lz4Magic = 0x5A4C4158; // 'XALZ'
@@ -99,3 +102,4 @@ private static void AssertIsThisAssembly(PEReader peReader)
99102
.Should().Be(typeof(ArchiveUtilsTests).Assembly.GetName().Name);
100103
}
101104
}
105+
#endif

0 commit comments

Comments
 (0)