aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/supervisor_1.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-10-10 10:49:48 +0200
committerSiri Hansen <[email protected]>2017-11-09 15:15:58 +0100
commitf2d4d4fa6a6245da78fc145b7010ae6f36626ed5 (patch)
tree46b5ba62292263a012e566838901c82654ccb48e /lib/stdlib/test/supervisor_1.erl
parent62db6a63625ef67d7474da1efc8d4f65bfd8c251 (diff)
downloadotp-f2d4d4fa6a6245da78fc145b7010ae6f36626ed5.tar.gz
otp-f2d4d4fa6a6245da78fc145b7010ae6f36626ed5.tar.bz2
otp-f2d4d4fa6a6245da78fc145b7010ae6f36626ed5.zip
[supervisor] Improve test suite before refactoring
Diffstat (limited to 'lib/stdlib/test/supervisor_1.erl')
-rw-r--r--lib/stdlib/test/supervisor_1.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stdlib/test/supervisor_1.erl b/lib/stdlib/test/supervisor_1.erl
index 419026749b..c3ccacc587 100644
--- a/lib/stdlib/test/supervisor_1.erl
+++ b/lib/stdlib/test/supervisor_1.erl
@@ -42,6 +42,8 @@ start_child(error) ->
set -> gen_server:start_link(?MODULE, error, [])
end;
+start_child({return, Term}) ->
+ Term;
start_child(Extra) ->
{ok, Pid} = gen_server:start_link(?MODULE, normal, []),