From 17a52e0f896f8c5b7b31b24df8a4d6ffd7856dd1 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 20 Oct 2025 10:55:27 +0200 Subject: [PATCH 1/3] test: add missing native crash integration test for Android --- integration-test/android.Tests.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/integration-test/android.Tests.ps1 b/integration-test/android.Tests.ps1 index 7ec0a80fbc..89542c0065 100644 --- a/integration-test/android.Tests.ps1 +++ b/integration-test/android.Tests.ps1 @@ -149,6 +149,20 @@ Describe 'MAUI app' -ForEach @( $result.Envelopes() | Should -Not -AnyElementMatch "`"type`":`"System.\w+Exception`"" } + It 'Native crash' { + $result = Invoke-SentryServer { + param([string]$url) + InstallAndroidApp -Dsn $url + RunAndroidApp -Dsn $url -TestArg "Native" + RunAndroidApp -Dsn $url + } + + Dump-ServerErrors -Result $result + $result.HasErrors() | Should -BeFalse + $result.Envelopes() | Should -AnyElementMatch "`"type`":`"SIGILL`"" + $result.Envelopes() | Should -Not -AnyElementMatch "`"type`":`"System.\w+Exception`"" + } + It 'Null reference exception' { $result = Invoke-SentryServer { param([string]$url) From 691876f8ede9bf4fff74758f528e63d2d0e151fe Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 20 Oct 2025 17:16:40 +0200 Subject: [PATCH 2/3] Allow SIGTRAP for ARM64 --- integration-test/android.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-test/android.Tests.ps1 b/integration-test/android.Tests.ps1 index 89542c0065..136966a94f 100644 --- a/integration-test/android.Tests.ps1 +++ b/integration-test/android.Tests.ps1 @@ -159,7 +159,7 @@ Describe 'MAUI app' -ForEach @( Dump-ServerErrors -Result $result $result.HasErrors() | Should -BeFalse - $result.Envelopes() | Should -AnyElementMatch "`"type`":`"SIGILL`"" + $result.Envelopes() | Should -AnyElementMatch "`"type`":`"SIG[A-Z]+`"" # SIGILL, SIGTRAP $result.Envelopes() | Should -Not -AnyElementMatch "`"type`":`"System.\w+Exception`"" } From a70fd629b29f817edb233d2c51702d503def5472 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 20 Oct 2025 17:28:56 +0200 Subject: [PATCH 3/3] clarify comment --- integration-test/android.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-test/android.Tests.ps1 b/integration-test/android.Tests.ps1 index 136966a94f..30e7009378 100644 --- a/integration-test/android.Tests.ps1 +++ b/integration-test/android.Tests.ps1 @@ -159,7 +159,7 @@ Describe 'MAUI app' -ForEach @( Dump-ServerErrors -Result $result $result.HasErrors() | Should -BeFalse - $result.Envelopes() | Should -AnyElementMatch "`"type`":`"SIG[A-Z]+`"" # SIGILL, SIGTRAP + $result.Envelopes() | Should -AnyElementMatch "`"type`":`"SIG[A-Z]+`"" # SIGILL (x86_64), SIGTRAP (arm64-v8a) $result.Envelopes() | Should -Not -AnyElementMatch "`"type`":`"System.\w+Exception`"" }