aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErland Schönbeck <[email protected]>2015-02-19 10:21:02 +0100
committerErland Schönbeck <[email protected]>2015-02-19 10:21:02 +0100
commit1187c9520fbb29db5d9d9bd6c56d8ff51843eb01 (patch)
treea508c4406a35254f83fcb9f4bb2510a4ff638790
parent9e3299ca1b5d70562372a8eb51abf1cd96a284db (diff)
parentb0bc9466e5a20dc23fff86dffce620f1fc1350bc (diff)
downloadotp-1187c9520fbb29db5d9d9bd6c56d8ff51843eb01.tar.gz
otp-1187c9520fbb29db5d9d9bd6c56d8ff51843eb01.tar.bz2
otp-1187c9520fbb29db5d9d9bd6c56d8ff51843eb01.zip
Merge branch 'erland/diameter/time/OTP-12439' into maint
* erland/diameter/time/OTP-12439: otp_SUITE: Ignore diameter undefined function errors
-rw-r--r--erts/test/otp_SUITE.erl20
1 files changed, 18 insertions, 2 deletions
diff --git a/erts/test/otp_SUITE.erl b/erts/test/otp_SUITE.erl
index 229d10ccee..171f722357 100644
--- a/erts/test/otp_SUITE.erl
+++ b/erts/test/otp_SUITE.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2000-2013. All Rights Reserved.
+%% Copyright Ericsson AB 2000-2015. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -94,7 +94,8 @@ undefined_functions(Config) when is_list(Config) ->
Undef4 = eunit_filter(Undef3),
Undef5 = dialyzer_filter(Undef4),
Undef6 = wx_filter(Undef5),
- Undef = gs_filter(Undef6),
+ Undef7 = gs_filter(Undef6),
+ Undef = diameter_filter(Undef7),
case Undef of
[] -> ok;
@@ -217,6 +218,21 @@ gs_filter(Undef) ->
_ -> Undef
end.
+diameter_filter(Undef) ->
+ %% Filter away function calls that are catched.
+ filter(fun({{diameter_lib,_,_},{erlang,convert_time_resolution,3}}) ->
+ false;
+ ({{diameter_lib,_,_},{erlang,monotonic_time,0}}) ->
+ false;
+ ({{diameter_lib,_,_},{erlang,time_resolution,0}}) ->
+ false;
+ ({{diameter_lib,_,_},{erlang,unique_integer,0}}) ->
+ false;
+ ({{diameter_lib,_,_},{erlang,time_offset,0}}) ->
+ false;
+ (_) -> true
+ end, Undef).
+
deprecated_not_in_obsolete(Config) when is_list(Config) ->
?line Server = ?config(xref_server, Config),
?line {ok,DeprecatedFunctions} = xref:q(Server, "DF"),