diff options
author | Oliver Wolff <[email protected]> | 2024-06-03 10:28:20 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <[email protected]> | 2024-06-04 13:56:52 +0000 |
commit | 6771f66fae48f866164aaa60ad433c59be678442 (patch) | |
tree | bdb4719b815a5895f9f714398a52c411658202a0 | |
parent | 229ed81c728892abcd0732fb6ff630bf95f6cb4b (diff) |
tst_qprocess: Add crash helper for MSVC ARM64
The ud2 intrinsic isn't available for ARM64
Fixes: QTBUG-125436
Change-Id: I3f71252c570cf9795de7907fea68f46ffc81211a
Reviewed-by: Thiago Macieira <[email protected]>
(cherry picked from commit 1fd965cd2be5e73ab7ab8d1e9b44d77f32182744)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit ea588a8a2b080417a1602d4832d9a03b94111c5a)
-rw-r--r-- | tests/auto/corelib/io/qprocess/crasher.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qprocess/crasher.h b/tests/auto/corelib/io/qprocess/crasher.h index 7d55bf980f6..f1ca82a86b7 100644 --- a/tests/auto/corelib/io/qprocess/crasher.h +++ b/tests/auto/corelib/io/qprocess/crasher.h @@ -45,6 +45,8 @@ void crash() { #if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64)) __ud2(); +#elif defined(_MSC_VER) && defined(_M_ARM64) + __debugbreak(); #elif __has_builtin(__builtin_trap) __builtin_trap(); #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) |