aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/driver_SUITE.erl
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2016-09-02 10:43:39 +0200
committerRickard Green <[email protected]>2016-09-02 10:52:19 +0200
commitbc9d81f0e4b62927cf97e3e5b31fdb88ab3bceb9 (patch)
tree6608813543b2d9172ab381135d444ecc4bdf72fa /erts/emulator/test/driver_SUITE.erl
parent82e5d81d57676a9e039d93544583895e92840beb (diff)
downloadotp-bc9d81f0e4b62927cf97e3e5b31fdb88ab3bceb9.tar.gz
otp-bc9d81f0e4b62927cf97e3e5b31fdb88ab3bceb9.tar.bz2
otp-bc9d81f0e4b62927cf97e3e5b31fdb88ab3bceb9.zip
Ensure long enough sleep in driver_SUITE:timer_delay driver
Diffstat (limited to 'erts/emulator/test/driver_SUITE.erl')
-rw-r--r--erts/emulator/test/driver_SUITE.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/erts/emulator/test/driver_SUITE.erl b/erts/emulator/test/driver_SUITE.erl
index 1df72193a6..2fbf6eae61 100644
--- a/erts/emulator/test/driver_SUITE.erl
+++ b/erts/emulator/test/driver_SUITE.erl
@@ -452,11 +452,7 @@ timer_delay(Config) when is_list(Config) ->
TimeBefore = erlang:monotonic_time(),
Timeout0 = 350,
erlang:port_command(Port, <<?DELAY_START_TIMER,Timeout0:32>>),
- Timeout = Timeout0 +
- case os:type() of
- {win32,_} -> 0; %Driver doesn't sleep on Windows.
- _ -> 1000
- end,
+ Timeout = Timeout0 + 1000,
receive
{Port,{data,[?TIMER]}} ->
Elapsed = erl_millisecs() - erl_millisecs(TimeBefore),