mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 17:10:22 +00:00
[NTDLL_APITEST] Ensure that some noticeable time has passed since process creation to fix a flaky test.
This commit is contained in:
parent
fa0c63bc48
commit
ec9f3d82b0
1 changed files with 3 additions and 1 deletions
|
@ -119,7 +119,6 @@ Test_ProcessTimes(void)
|
|||
sizeof(KERNEL_USER_TIMES),
|
||||
NULL);
|
||||
ok_hex(Status, STATUS_SUCCESS);
|
||||
ros_skip_flaky
|
||||
ok(Times1.CreateTime.QuadPart < TestStartTime.QuadPart,
|
||||
"CreateTime is %I64u, expected < %I64u\n", Times1.CreateTime.QuadPart, TestStartTime.QuadPart);
|
||||
ok(Times1.CreateTime.QuadPart > TestStartTime.QuadPart - 100000000LL,
|
||||
|
@ -327,6 +326,9 @@ START_TEST(NtQueryInformationProcess)
|
|||
{
|
||||
NTSTATUS Status;
|
||||
|
||||
/* Make sure that some time has passed since process creation, even if the resolution of our NtQuerySystemTime is low. */
|
||||
Sleep(1);
|
||||
|
||||
Status = NtQuerySystemTime(&TestStartTime);
|
||||
ok_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
|
|
Loading…
Reference in a new issue