mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00: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:
parent
8233aa5667
commit
a6faa1b82d
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue