aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-09-02 15:58:33 +0200
committerBjörn Gustavsson <[email protected]>2015-09-11 12:24:35 +0200
commitbd0b4805862c722807765396711d3e1e7ccbbd57 (patch)
treeb19ebffca96edee4f9e328ac49abfaeb6b64a997 /lib/stdlib
parent25e79a057a6839287271fc7a04a03f7e6f04652d (diff)
downloadotp-bd0b4805862c722807765396711d3e1e7ccbbd57.tar.gz
otp-bd0b4805862c722807765396711d3e1e7ccbbd57.tar.bz2
otp-bd0b4805862c722807765396711d3e1e7ccbbd57.zip
proc_lib_SUITE: Eliminate compiler warnings
Use error/1 instead of forcing a badmatch.
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/test/proc_lib_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/test/proc_lib_SUITE.erl b/lib/stdlib/test/proc_lib_SUITE.erl
index 3a8fa74d36..857cd3f88d 100644
--- a/lib/stdlib/test/proc_lib_SUITE.erl
+++ b/lib/stdlib/test/proc_lib_SUITE.erl
@@ -369,7 +369,7 @@ init_dont_hang(Config) when is_list(Config) ->
end.
init_dont_hang_init(_Parent) ->
- 1 = 2.
+ error(bad_init).
%% Test proc_lib:stop/1,3
stop(_Config) ->
@@ -453,7 +453,7 @@ stop(_Config) ->
ok.
system_terminate(crash,_Parent,_Deb,_State) ->
- 1 = 2;
+ error({badmatch,2});
system_terminate(Reason,_Parent,_Deb,_State) ->
exit(Reason).