diff options
author | Sverker Eriksson <[email protected]> | 2013-02-26 18:34:03 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-02-26 18:34:03 +0100 |
commit | 3fcaed87471abcedda4a04686efe963537519528 (patch) | |
tree | d6f4bd3ad711c3fba844c4916aab57a5ab8bd4cb /lib/stdlib/test/ets_SUITE.erl | |
parent | 4d22480802f12bc94a3d0a076f0038b566bb104f (diff) | |
download | otp-3fcaed87471abcedda4a04686efe963537519528.tar.gz otp-3fcaed87471abcedda4a04686efe963537519528.tar.bz2 otp-3fcaed87471abcedda4a04686efe963537519528.zip |
stdlib: Remove race in ets_SUITE:delete_large_tab
Diffstat (limited to 'lib/stdlib/test/ets_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/ets_SUITE.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/stdlib/test/ets_SUITE.erl b/lib/stdlib/test/ets_SUITE.erl index d0478fdeac..d40609eeb0 100644 --- a/lib/stdlib/test/ets_SUITE.erl +++ b/lib/stdlib/test/ets_SUITE.erl @@ -3218,6 +3218,7 @@ delete_large_tab_1(Name, Flags, Data, Fix) -> end end, 0), + SchedTracerMon = monitor(process, SchedTracer), ?line Loopers = start_loopers(erlang:system_info(schedulers), Prio, fun (_) -> erlang:yield() end, @@ -3237,7 +3238,9 @@ delete_large_tab_1(Name, Flags, Data, Fix) -> N >= 5 -> ?line ok; true -> ?line ?t:fail() end - end. + end, + receive {'DOWN',SchedTracerMon,process,SchedTracer,_} -> ok end, + ok. delete_large_named_table(doc) -> "Delete a large name table and try to create a new table with the same name in another process."; |