aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-02-26 09:57:43 +0100
committerLukas Larsson <[email protected]>2016-03-15 12:12:42 +0100
commita426da990b999ba8a44aec739e412f7f8722df24 (patch)
tree15e84c2aca96f4d982da8dc35ae4a52e61543b36
parent8cc9f09f5d201faadbcd3bf74d91214becf27196 (diff)
downloadotp-a426da990b999ba8a44aec739e412f7f8722df24.tar.gz
otp-a426da990b999ba8a44aec739e412f7f8722df24.tar.bz2
otp-a426da990b999ba8a44aec739e412f7f8722df24.zip
Fix dirty scheduler tc on windows
-rw-r--r--erts/emulator/test/scheduler_SUITE_data/scheduler_SUITE.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/erts/emulator/test/scheduler_SUITE_data/scheduler_SUITE.c b/erts/emulator/test/scheduler_SUITE_data/scheduler_SUITE.c
index 022858c114..ab4863337f 100644
--- a/erts/emulator/test/scheduler_SUITE_data/scheduler_SUITE.c
+++ b/erts/emulator/test/scheduler_SUITE_data/scheduler_SUITE.c
@@ -1,4 +1,6 @@
+#ifndef __WIN32__
#include <unistd.h>
+#endif
#include "erl_nif.h"
static int
@@ -15,8 +17,12 @@ static ERL_NIF_TERM
dirty_sleeper(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
#ifdef ERL_NIF_DIRTY_SCHEDULER_SUPPORT
+#ifdef __WIN32__
+ Sleep(3000);
+#else
sleep(3);
#endif
+#endif
return enif_make_atom(env, "ok");
}