aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/erl_lint_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-04-04 05:40:00 +0200
committerBjörn Gustavsson <[email protected]>2019-04-05 07:28:27 +0200
commitd94b28b7a919c427a14805494662804c3fcf5c2f (patch)
tree85145ef76b46cebe65cb466d7b678459309d6a61 /lib/stdlib/test/erl_lint_SUITE.erl
parented4a4dcc66dc3bcc9d97f06e5630e8cbe3bd0410 (diff)
downloadotp-d94b28b7a919c427a14805494662804c3fcf5c2f.tar.gz
otp-d94b28b7a919c427a14805494662804c3fcf5c2f.tar.bz2
otp-d94b28b7a919c427a14805494662804c3fcf5c2f.zip
Don't warn for removed functions in OTP 18 or older
Diffstat (limited to 'lib/stdlib/test/erl_lint_SUITE.erl')
-rw-r--r--lib/stdlib/test/erl_lint_SUITE.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/stdlib/test/erl_lint_SUITE.erl b/lib/stdlib/test/erl_lint_SUITE.erl
index e791da48cf..6d604794e7 100644
--- a/lib/stdlib/test/erl_lint_SUITE.erl
+++ b/lib/stdlib/test/erl_lint_SUITE.erl
@@ -2109,11 +2109,10 @@ otp_5362(Config) when is_list(Config) ->
{calendar,local_time_to_universal_time_dst,1}, "a future release"}}]}},
{call_removed_function,
- <<"t(X) -> regexp:match(X).">>,
+ <<"t(X) -> erlang:hash(X, 10000).">>,
[],
{warnings,
- [{1,erl_lint,{removed,{regexp,match,1},
- "removed in R15; use the re module instead"}}]}}
+ [{1,erl_lint,{removed,{erlang,hash,2},{erlang,phash2,2},"20.0"}}]}}
],