aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-05-02 19:20:27 +0200
committerSiri Hansen <[email protected]>2018-05-07 12:02:25 +0200
commit3cef0524e4332ebf547180ec0d0feafe0a559b5c (patch)
tree26d95510da97051b94e31435249a5d409673af53 /lib/kernel/test
parent336e7eed4e44fe9267234e4702db6fd613064dcd (diff)
downloadotp-3cef0524e4332ebf547180ec0d0feafe0a559b5c.tar.gz
otp-3cef0524e4332ebf547180ec0d0feafe0a559b5c.tar.bz2
otp-3cef0524e4332ebf547180ec0d0feafe0a559b5c.zip
Add logger:update_process_metadata/1
Diffstat (limited to 'lib/kernel/test')
-rw-r--r--lib/kernel/test/logger_SUITE.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/kernel/test/logger_SUITE.erl b/lib/kernel/test/logger_SUITE.erl
index 0edce3e34c..94fd87bdb0 100644
--- a/lib/kernel/test/logger_SUITE.erl
+++ b/lib/kernel/test/logger_SUITE.erl
@@ -666,6 +666,9 @@ process_metadata(_Config) ->
check_logged(info,S3,#{time=>Time,line=>0,custom=>func}),
ProcMeta = logger:get_process_metadata(),
+ ok = logger:update_process_metadata(#{custom=>changed,custom2=>added}),
+ Expected = ProcMeta#{custom:=changed,custom2=>added},
+ Expected = logger:get_process_metadata(),
ok = logger:unset_process_metadata(),
undefined = logger:get_process_metadata(),