[MSVCRT_APITEST] Fix test condition for strtoul on ReactOS

Wine msvcrt behaves like Vista+ here.
Also disable related static_crt tests, because it isn't even well defined how they should behave and what to compare it to.
This commit is contained in:
Timo Kreuzer
2025-12-30 12:57:14 +02:00
parent ff7fdcf4b0
commit 4799c86d01
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -63,7 +63,11 @@ START_TEST(tcstoul)
StartSeh()
Result = _tcstoul(NULL, NULL, 0);
EndSeh((GetNTVersion() >= _WIN32_WINNT_VISTA) ? 0 : STATUS_ACCESS_VIOLATION);
#ifdef TEST_CRTDLL
EndSeh(STATUS_ACCESS_VIOLATION);
#else
EndSeh(((GetNTVersion() >= _WIN32_WINNT_VISTA) || is_reactos()) ? 0 : STATUS_ACCESS_VIOLATION);
#endif
StartSeh()
Result = _tcstoul(_T(""), NULL, 0);
+2 -2
View File
@@ -56,8 +56,8 @@ const struct test winetest_testlist[] =
{ "sprintf", func_sprintf },
{ "strcpy", func_strcpy },
{ "strlen", func_strlen },
{ "strtoul", func_strtoul },
{ "wcstoul", func_wcstoul },
//{ "strtoul", func_strtoul },
//{ "wcstoul", func_wcstoul },
{ "wctomb", func_wctomb },
{ "wcstombs", func_wcstombs },
{ "ceil", func_ceil },