aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Simonsson <[email protected]>2012-07-04 14:10:16 +0200
committerGustav Simonsson <[email protected]>2012-07-04 14:10:16 +0200
commit30fe2fcfd7116959f97d62301b1e95b6c4635be7 (patch)
tree93f108ce73328613aa7cf3b6010f4c57b75ae3a7
parent06067a490863cf2e7ff3323b639176b6200c9c41 (diff)
downloadotp-30fe2fcfd7116959f97d62301b1e95b6c4635be7.tar.gz
otp-30fe2fcfd7116959f97d62301b1e95b6c4635be7.tar.bz2
otp-30fe2fcfd7116959f97d62301b1e95b6c4635be7.zip
Change testcase of gen_server:enter_loop/4 with global scope
to match on result of a gen_server:call/2
-rw-r--r--lib/stdlib/test/gen_server_SUITE.erl12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/stdlib/test/gen_server_SUITE.erl b/lib/stdlib/test/gen_server_SUITE.erl
index c38362d716..48ef7e55ed 100644
--- a/lib/stdlib/test/gen_server_SUITE.erl
+++ b/lib/stdlib/test/gen_server_SUITE.erl
@@ -820,20 +820,14 @@ spec_init(Config) when is_list(Config) ->
test_server:fail(gen_server_did_not_die)
end,
- %% There is probably a better way to test this.
%% Before the OTP-10130 fix this failed because a timeout message
%% was generated as the spawned process crashed because a {global, Name}
%% was matched as a timeout value instead of matching on scope.
{ok, _PidHurra} =
start_link(spec_init_global_default_timeout, [{ok, hurra}, []]),
- receive
- _Anything ->
- ct:log("OTP-10130, received: ~p~n", [_Anything]),
- test_server:fail(init_of_global_default_timeout_failed)
- after 5000 ->
- ok
- end,
-
+ timer:sleep(1000),
+ ok = gen_server:call(_PidHurra, started_p),
+
?line Pid5 =
erlang:spawn_link(?MODULE, spec_init_not_proc_lib, [[]]),
receive