[CRT_APITEST] Fix test for strlen

The direction flag in eflags is preserved on x64, but not on x86.
This commit is contained in:
Timo Kreuzer 2023-01-30 20:38:40 +02:00
parent 8233aa5667
commit a6faa1b82d

View file

@ -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