Skip to content

Commit 001d005

Browse files
committed
[CRT_APITEST] Fix test failures on Win 2003 x64
1 parent e431470 commit 001d005

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/rostests/apitests/crt/setjmp.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,13 @@ static void TEST_setjmp_normal(void)
5757
#endif /* ndef __clang__ */
5858
case 3:
5959
ok_int(value, 333);
60-
ok_int(finally_called, TRUE);
61-
ok_int(abnormal, TRUE);
60+
#ifdef _M_AMD64 // This is broken on Windows 2003 x64
61+
if (_winver >= _WIN32_WINNT_VISTA)
62+
#endif
63+
{
64+
ok_int(finally_called, TRUE);
65+
ok_int(abnormal, TRUE);
66+
}
6267
stage = 4;
6368
#ifdef __clang__ /* avoiding clang build hung up */
6469
skip("avoiding clang build crash\n");

0 commit comments

Comments
 (0)