diff options
author | Sverker Eriksson <[email protected]> | 2011-02-15 14:48:08 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2011-02-21 16:01:35 +0100 |
commit | 1580937874b35350c0ff5c2a72b2540d7ec28378 (patch) | |
tree | 86b7526c58488095e37335d7d5c669a61bc656f3 /erts/emulator/test/driver_SUITE.erl | |
parent | cd7fc2cb900dcd296f2ba215dea1c691440107d0 (diff) | |
download | otp-1580937874b35350c0ff5c2a72b2540d7ec28378.tar.gz otp-1580937874b35350c0ff5c2a72b2540d7ec28378.tar.bz2 otp-1580937874b35350c0ff5c2a72b2540d7ec28378.zip |
Allow unexpected driver input event in driver_SUITE:smp_select
epoll on Linux has been seen to sometimes trigger unexpected
events. Most of the time these events are filtered by erl_check_io,
but may slip up to the driver in cases when fd's are reused.
Also made clear in driver docs that spurious events may happen.
Diffstat (limited to 'erts/emulator/test/driver_SUITE.erl')
-rw-r--r-- | erts/emulator/test/driver_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/test/driver_SUITE.erl b/erts/emulator/test/driver_SUITE.erl index 39b2ed395f..e029e4ec87 100644 --- a/erts/emulator/test/driver_SUITE.erl +++ b/erts/emulator/test/driver_SUITE.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1997-2009. All Rights Reserved. +%% Copyright Ericsson AB 1997-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -1682,7 +1682,7 @@ smp_select0(Config) -> ProcFun = fun()-> io:format("Worker ~p starting\n",[self()]), ?line Port = open_port({spawn, DrvName}, []), smp_select_loop(Port, 100000), - sleep(500), % wait for driver to handle pending events + sleep(1000), % wait for driver to handle pending events ?line true = erlang:port_close(Port), Master ! {ok,self()}, io:format("Worker ~p finished\n",[self()]) |