summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2009-03-20 13:41:30 +0200
committerMichael Widenius <monty@askmonty.org>2009-03-20 13:41:30 +0200
commit4dc093cee49af450600b9fc57143b0a04a7eb39c (patch)
tree4d225c5610ad87e1107a80f47ed3f82d31fc0d45 /unittest
parent2611d3c002df6b37250a996752398c7262d6d8a3 (diff)
downloadmariadb-git-4dc093cee49af450600b9fc57143b0a04a7eb39c.tar.gz
Avoid compiler warnings on windows
include/config-win.h: Added missing typedef ssize_t Added some other useful defines from MySQL 6.0 unittest/mysys/waiting_threads-t.c: Fixed link failure for 'ftruncate' on Windows
Diffstat (limited to 'unittest')
-rw-r--r--unittest/mysys/waiting_threads-t.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/unittest/mysys/waiting_threads-t.c b/unittest/mysys/waiting_threads-t.c
index 6274077a87f..7c76252a29f 100644
--- a/unittest/mysys/waiting_threads-t.c
+++ b/unittest/mysys/waiting_threads-t.c
@@ -254,6 +254,7 @@ void do_tests()
diag("timeout_long=%lu us, deadlock_search_depth_long=%lu",
wt_timeout_long, wt_deadlock_search_depth_long);
+#ifndef _WIN32
#define test_kill_strategy(X) \
diag("kill strategy: " #X); \
DBUG_EXECUTE("reset_file", \
@@ -261,6 +262,12 @@ void do_tests()
DBUG_PRINT("info", ("kill strategy: " #X)); \
kill_strategy=X; \
do_one_test();
+#else
+ diag("kill strategy: " #X); \
+ DBUG_PRINT("info", ("kill strategy: " #X)); \
+ kill_strategy=X; \
+ do_one_test();
+#endif
test_kill_strategy(LATEST);
test_kill_strategy(RANDOM);