mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:56:00 +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();
|
eflags = __readeflags();
|
||||||
__writeeflags(eflags | EFLAGS_DF);
|
__writeeflags(eflags | EFLAGS_DF);
|
||||||
len = pstrlen(teststr + 4);
|
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);
|
__writeeflags(eflags);
|
||||||
|
|
||||||
/* Only test this for the exported versions, intrinsics might do it
|
/* Only test this for the exported versions, intrinsics might do it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue