Rebase against 85826158947637f790b68742a5448c483f47234f

This commit is contained in:
Alistair Leslie-Hughes
2019-04-26 09:42:11 +10:00
parent f883c66e40
commit fea87f9a23
6 changed files with 50 additions and 401 deletions

View File

@@ -1,19 +1,19 @@
From 05b8d4c26a8b73a782d5f88de09a7db351af012d Mon Sep 17 00:00:00 2001
From 8546a498af3b79503e310f80d132abe6b4b49670 Mon Sep 17 00:00:00 2001
From: Zebediah Figura <z.figura12@gmail.com>
Date: Tue, 26 Jun 2018 18:44:44 -0500
Subject: [PATCH 59/83] kernel32/tests: Zigzag test.
Subject: [PATCH] kernel32/tests: Zigzag test.
The primary function is to check for races. The secondary function is to measure performance.
---
dlls/kernel32/tests/sync.c | 79 ++++++++++++++++++++++++++++++++++++++
dlls/kernel32/tests/sync.c | 79 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
diff --git a/dlls/kernel32/tests/sync.c b/dlls/kernel32/tests/sync.c
index c79e0595e..d790bcfa0 100644
index 66ec3af..5960e92 100644
--- a/dlls/kernel32/tests/sync.c
+++ b/dlls/kernel32/tests/sync.c
@@ -3005,6 +3005,84 @@ static void test_apc_deadlock(void)
CloseHandle(pi.hProcess);
@@ -3025,6 +3025,84 @@ todo_wine
DeleteCriticalSection(&cs);
}
+static int zigzag_state, zigzag_count[2], zigzag_stop;
@@ -97,12 +97,13 @@ index c79e0595e..d790bcfa0 100644
START_TEST(sync)
{
char **argv;
@@ -3064,4 +3142,5 @@ START_TEST(sync)
@@ -3084,5 +3162,6 @@ START_TEST(sync)
test_srwlock_example();
test_alertable_wait();
test_apc_deadlock();
+ test_zigzag_event();
test_crit_section();
}
--
2.20.1
1.9.1