diff options
author | Hans Bolinder <[email protected]> | 2017-11-28 12:37:42 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-11-28 12:37:42 +0100 |
commit | 59ca0ddeb08d6ec433fa50eaa0a7175a09766b83 (patch) | |
tree | 2bf6f2d981a75ec23bfa4c459fb0346c2825de06 /lib/dialyzer/test/plt_SUITE.erl | |
parent | 56eecdc8d0a0ebe7eb6b6d180e1854a72ddf82ac (diff) | |
parent | 985f5a1fae38caed84cde8bc09f6f60e91710f20 (diff) | |
download | otp-59ca0ddeb08d6ec433fa50eaa0a7175a09766b83.tar.gz otp-59ca0ddeb08d6ec433fa50eaa0a7175a09766b83.tar.bz2 otp-59ca0ddeb08d6ec433fa50eaa0a7175a09766b83.zip |
Merge branch 'hasse/dialyzer/maps_anon_fun/OTP-14743' into maint
* hasse/dialyzer/maps_anon_fun/OTP-14743:
dialyzer: Extend the map implementation's handling of ?unit
dialyzer: Use string:find() instead of string:str()
Diffstat (limited to 'lib/dialyzer/test/plt_SUITE.erl')
-rw-r--r-- | lib/dialyzer/test/plt_SUITE.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/dialyzer/test/plt_SUITE.erl b/lib/dialyzer/test/plt_SUITE.erl index a8a9f176fc..680f5b5088 100644 --- a/lib/dialyzer/test/plt_SUITE.erl +++ b/lib/dialyzer/test/plt_SUITE.erl @@ -283,8 +283,8 @@ bad_dialyzer_attr(Config) -> {dialyzer_error, "Analysis failed with error:\n" ++ Str1} = (catch dialyzer:run(Opts)), - P1 = string:str(Str1, "dial.erl:2: function undef/0 undefined"), - true = P1 > 0, + S1 = string:find(Str1, "dial.erl:2: function undef/0 undefined"), + true = is_list(S1), Prog2 = <<"-module(dial). -dialyzer({no_return, [{undef,1,2}]}).">>, @@ -292,9 +292,9 @@ bad_dialyzer_attr(Config) -> {dialyzer_error, "Analysis failed with error:\n" ++ Str2} = (catch dialyzer:run(Opts)), - P2 = string:str(Str2, "dial.erl:2: badly formed dialyzer " - "attribute: {no_return,{undef,1,2}}"), - true = P2 > 0, + S2 = string:find(Str2, "dial.erl:2: badly formed dialyzer " + "attribute: {no_return,{undef,1,2}}"), + true = is_list(S2), ok. |