Module: wine Branch: master Commit: ffade87df1f851867d0a33a80d8d7fec9e68e6ea URL: https://gitlab.winehq.org/wine/wine/-/commit/ffade87df1f851867d0a33a80d8d7fe...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Mar 12 20:49:54 2024 +0100
ntdll/tests: Fix a backtrace test failure on Windows ARM64.
---
dlls/ntdll/tests/exception.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c index 01177a2c5d7..9ce0646cd47 100644 --- a/dlls/ntdll/tests/exception.c +++ b/dlls/ntdll/tests/exception.c @@ -10294,7 +10294,7 @@ static void test_backtrace(void) ULONG hash, hash_expect; int i, count = RtlCaptureStackBackTrace( 0, 1024, buffer, &hash );
- ok( count > 1, "got %u entries\n", count ); + ok( count > 0, "got %u entries\n", count ); for (i = hash_expect = 0; i < count; i++) hash_expect += (ULONG_PTR)buffer[i]; ok( hash == hash_expect, "hash mismatch %lx / %lx\n", hash, hash_expect ); RtlPcToFileHeader( buffer[0], &module ); @@ -10302,6 +10302,7 @@ static void test_backtrace(void) module, GetModuleHandleA(0), buffer[0]);
if (count && !buffer[count - 1]) count--; /* win11 32-bit */ + if (count <= 1) return; RtlPcToFileHeader( buffer[count - 1], &module ); GetModuleFileNameW( module, name, ARRAY_SIZE(name) ); if ((p = wcsrchr( name, '\' ))) p++;