Expected=lists:flatten(io_lib:format("[error] ~w gen_server crash terminated with reason: no such process or port in call to gen_event:call(foo, bar, baz)",[Pid])),
?assertEqual(Expected,lists:flatten(Msg))
end
},
{"badfun",
fun()->
Pid=whereis(crash),
crash(badfun),
{_,_,Msg}=pop(),
Expected=lists:flatten(io_lib:format("[error] ~w gen_server crash terminated with reason: bad function booger in crash:handle_call/3",[Pid])),
Expected=lists:flatten(io_lib:format("[error] ~w Supervisor steve had child at module mini_steve at bleh exit with reason fired in context france",[self()])),