[APITESTS] Improve and fix tests

This commit is contained in:
Timo Kreuzer 2019-12-09 17:16:02 +01:00
parent cd5cc017cb
commit 465745b683
45 changed files with 832 additions and 566 deletions

View file

@ -88,12 +88,20 @@ START_TEST(sprintf)
StartSeh()
Length = sprintf(NULL, "");
ok_int(Length, 0);
#if TEST_CRTDLL || TEST_USER32
EndSeh(STATUS_ACCESS_VIOLATION);
#else
EndSeh(STATUS_SUCCESS);
#endif
StartSeh()
Length = sprintf(NULL, "Hello");
ok_int(Length, 5);
#if TEST_CRTDLL || TEST_USER32
EndSeh(STATUS_ACCESS_VIOLATION);
#else
EndSeh(STATUS_SUCCESS);
#endif
/* some basic formats */
Length = sprintf(Buffer, "abcde");