diff options
author | Anthony Ramine <[email protected]> | 2013-10-12 13:43:38 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2014-01-23 10:24:43 +0100 |
commit | 29b974d60a76cfd5eb6a1b30b76905952e239d25 (patch) | |
tree | 7217f1ee167fce97b04cf34ace28757cad8bad33 /lib/stdlib/test/erl_lint_SUITE.erl | |
parent | e99633a51cbd22b16606c2669c575c22cf1c511f (diff) | |
download | otp-29b974d60a76cfd5eb6a1b30b76905952e239d25.tar.gz otp-29b974d60a76cfd5eb6a1b30b76905952e239d25.tar.bz2 otp-29b974d60a76cfd5eb6a1b30b76905952e239d25.zip |
Properly handle export_all when looking for undefined callbacks
Reported-by: Michele Miron
Diffstat (limited to 'lib/stdlib/test/erl_lint_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/erl_lint_SUITE.erl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/stdlib/test/erl_lint_SUITE.erl b/lib/stdlib/test/erl_lint_SUITE.erl index a71d7f3018..6e9a9dd7bf 100644 --- a/lib/stdlib/test/erl_lint_SUITE.erl +++ b/lib/stdlib/test/erl_lint_SUITE.erl @@ -2859,7 +2859,15 @@ behaviour_basic(Config) when is_list(Config) -> stop(_) -> ok. ">>, [], - []} + []}, + + {behaviour4, + <<"-behavior(application). %% Test callbacks with export_all + -compile(export_all). + stop(_) -> ok. + ">>, + [], + {warnings,[{1,erl_lint,{undefined_behaviour_func,{start,2},application}}]}} ], ?line [] = run(Config, Ts), ok. |