aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/test/crashdump_viewer_SUITE.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2014-05-28 11:59:02 +0200
committerSiri Hansen <[email protected]>2014-05-28 11:59:02 +0200
commit235d02334181df0bed92b8c6af07d092627691fe (patch)
treeaf1167c109cf58a081a46736fe9f2c9c4c4bce07 /lib/observer/test/crashdump_viewer_SUITE.erl
parent54ba6869f4807a5b70868eb0204900d9de0d9f43 (diff)
parentdbd2604939e92c110277d941589b8965fdda4270 (diff)
downloadotp-235d02334181df0bed92b8c6af07d092627691fe.tar.gz
otp-235d02334181df0bed92b8c6af07d092627691fe.tar.bz2
otp-235d02334181df0bed92b8c6af07d092627691fe.zip
Merge branch 'siri/cdv-timer-reg-proc/OTP-11919' into maint
* siri/cdv-timer-reg-proc/OTP-11919: [cdv] Allow registered name as owner of timer in crashdump
Diffstat (limited to 'lib/observer/test/crashdump_viewer_SUITE.erl')
-rw-r--r--lib/observer/test/crashdump_viewer_SUITE.erl10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/observer/test/crashdump_viewer_SUITE.erl b/lib/observer/test/crashdump_viewer_SUITE.erl
index e9567c82cb..03ab0c20e1 100644
--- a/lib/observer/test/crashdump_viewer_SUITE.erl
+++ b/lib/observer/test/crashdump_viewer_SUITE.erl
@@ -385,8 +385,14 @@ special(File,Procs) ->
{ok,[_Ets=#ets_table{}],[]} = crashdump_viewer:ets_tables(Pid),
io:format(" ets tables ok",[]),
- {ok,[_Timer=#timer{}],[]} = crashdump_viewer:timers(Pid),
- io:format(" timers ok",[]),
+
+ {ok,[#timer{pid=Pid0,name=undefined},
+ #timer{pid=Pid0,name="aaaaaaaa"}],[]} =
+ crashdump_viewer:timers(Pid),
+ {ok,AllTimers,_TimersTW} = crashdump_viewer:timers(all),
+ #timer{name="noexistproc"} =
+ lists:keyfind(undefined,#timer.pid,AllTimers),
+ io:format(" timers ok:",[]),
{ok,Mod1=#loaded_mod{},[]} =
crashdump_viewer:loaded_mod_details(atom_to_list(?helper_mod)),