mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:52:56 +00:00
[CRT_APITEST]
- Disable a check for crtdll - Fix an MSVC warning svn path=/trunk/; revision=70453
This commit is contained in:
parent
1d88ccffb2
commit
66908136d4
2 changed files with 8 additions and 3 deletions
|
@ -14,7 +14,9 @@
|
||||||
#include <ndk/mmfuncs.h>
|
#include <ndk/mmfuncs.h>
|
||||||
#include <ndk/rtlfuncs.h>
|
#include <ndk/rtlfuncs.h>
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(disable:4778) // unterminated format string '%'
|
||||||
|
#else
|
||||||
#pragma GCC diagnostic ignored "-Wformat"
|
#pragma GCC diagnostic ignored "-Wformat"
|
||||||
#pragma GCC diagnostic ignored "-Wformat-zero-length"
|
#pragma GCC diagnostic ignored "-Wformat-zero-length"
|
||||||
#pragma GCC diagnostic ignored "-Wnonnull"
|
#pragma GCC diagnostic ignored "-Wnonnull"
|
||||||
|
@ -177,7 +179,7 @@ START_TEST(sprintf)
|
||||||
Length = sprintf(Buffer, "%.4s", "hello");
|
Length = sprintf(Buffer, "%.4s", "hello");
|
||||||
ok_str(Buffer, "hell");
|
ok_str(Buffer, "hell");
|
||||||
ok_int(Length, 4);
|
ok_int(Length, 4);
|
||||||
|
|
||||||
StartSeh()
|
StartSeh()
|
||||||
Length = sprintf(Buffer, "%.*s", -1, "hello");
|
Length = sprintf(Buffer, "%.*s", -1, "hello");
|
||||||
#ifdef TEST_USER32
|
#ifdef TEST_USER32
|
||||||
|
|
|
@ -52,11 +52,14 @@ Test_strlen(PFN_STRLEN pstrlen)
|
||||||
ok((eflags & EFLAGS_DF) != 0, "Direction flag in ELFAGS was changed.");
|
ok((eflags & EFLAGS_DF) != 0, "Direction flag in ELFAGS was changed.");
|
||||||
|
|
||||||
/* Only test this for the exported versions, intrinsics might do it
|
/* Only test this for the exported versions, intrinsics might do it
|
||||||
differently. It's up to us to not do fishy stuff! */
|
differently. It's up to us to not do fishy stuff! Also crtdll does
|
||||||
|
not do it like this. */
|
||||||
|
#ifndef TEST_CRTDLL
|
||||||
if (pstrlen == strlen)
|
if (pstrlen == strlen)
|
||||||
{
|
{
|
||||||
ok(len == 8, "Should not have gone backwards (got len %i)", (int)len);
|
ok(len == 8, "Should not have gone backwards (got len %i)", (int)len);
|
||||||
}
|
}
|
||||||
|
#endif // TEST_CRTDLL
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue