mirror of
https://github.com/reactos/reactos.git
synced 2026-05-23 07:40:09 +08:00
[CRT_APITEST] Fix test for strlen
The direction flag in eflags is preserved on x64, but not on x86.
This commit is contained in:
@@ -48,7 +48,12 @@ Test_strlen(PFN_STRLEN pstrlen)
|
||||
eflags = __readeflags();
|
||||
__writeeflags(eflags | EFLAGS_DF);
|
||||
len = pstrlen(teststr + 4);
|
||||
ok((__readeflags() & EFLAGS_DF) != 0, "Direction flag in ELFAGS was changed.");
|
||||
|
||||
#ifdef _M_AMD64
|
||||
ok((__readeflags() & EFLAGS_DF) != 0, "Direction flag in ELFAGS was changed.\n");
|
||||
#else
|
||||
ok((__readeflags() & EFLAGS_DF) == 0, "Direction flag in ELFAGS was not changed.\n");
|
||||
#endif
|
||||
__writeeflags(eflags);
|
||||
|
||||
/* Only test this for the exported versions, intrinsics might do it
|
||||
|
||||
Reference in New Issue
Block a user