diff options
author | Siri Hansen <[email protected]> | 2018-04-24 15:18:31 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-04-26 14:37:31 +0200 |
commit | 291cf6d8530f4e0ad2f22f199b5ae6975135bbb3 (patch) | |
tree | db38f4923022a0a58a6f08af7efe7ec97ba748d6 /lib/sasl/test/sasl_SUITE.erl | |
parent | d22fa5406d1b974f1a0c25f580e83093bf84b02b (diff) | |
download | otp-291cf6d8530f4e0ad2f22f199b5ae6975135bbb3.tar.gz otp-291cf6d8530f4e0ad2f22f199b5ae6975135bbb3.tar.bz2 otp-291cf6d8530f4e0ad2f22f199b5ae6975135bbb3.zip |
Test cuddle for logger
Diffstat (limited to 'lib/sasl/test/sasl_SUITE.erl')
-rw-r--r-- | lib/sasl/test/sasl_SUITE.erl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/sasl/test/sasl_SUITE.erl b/lib/sasl/test/sasl_SUITE.erl index f12bde9b3d..7b63684c53 100644 --- a/lib/sasl/test/sasl_SUITE.erl +++ b/lib/sasl/test/sasl_SUITE.erl @@ -21,6 +21,7 @@ -include_lib("common_test/include/ct.hrl"). %% Test server specific exports +-export([init_per_suite/1,end_per_suite/1]). -export([all/0,groups/0,init_per_group/2,end_per_group/2]). -export([init_per_testcase/2, end_per_testcase/2]). @@ -37,6 +38,19 @@ all() -> groups() -> []. +init_per_suite(Config) -> + S = application:get_env(kernel,logger_sasl_compatible), + application:set_env(kernel,logger_sasl_compatible,true), + [{sasl_compatible,S}|Config]. + +end_per_suite(Config) -> + case ?config(sasl_compatible,Config) of + {ok,X} -> + application:set_env(kernel,logger_sasl_compatible,X); + undefined -> + application:unset_env(kernel,logger_sasl_compatible) + end. + init_per_group(_GroupName, Config) -> Config. |