Skip to content

Commit

Permalink
tst_qprocess: Add crash helper for MSVC ARM64
Browse files Browse the repository at this point in the history
The ud2 intrinsic isn't available for ARM64

Fixes: QTBUG-125436
Pick-to: 6.7
Change-Id: I3f71252c570cf9795de7907fea68f46ffc81211a
Reviewed-by: Thiago Macieira <[email protected]>
(cherry picked from commit 1fd965c)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
  • Loading branch information
owolff authored and Qt Cherry-pick Bot committed Jun 4, 2024
1 parent 8f50ece commit ea588a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/auto/corelib/io/qprocess/crasher.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand Down

0 comments on commit ea588a8

Please sign in to comment.