[CRT_APITEST]

Fix sprintf tests to succeed on W2K3

svn path=/trunk/; revision=70456
This commit is contained in:
Timo Kreuzer 2015-12-28 15:49:29 +00:00
parent 42a833ef22
commit c88949294c

View file

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