anchor.diff:  -export(
      [ handle_info/2
       ,handle_call/3
  +    ,handle_cast/2
       ,init/1
       ,rec_info/1]).
   
  
positive.code:   watchdog:stop().
  
  subscriber_log_text_test() ->
    watchdog:start(),
    FN = mk_tmpfile(),
    watchdog:add_log_subscriber({text,FN}),
    watchdog:message(trivial),
    watchdog:stop(),
    ?assert(validate_file(FN,trivial)).
  
  subscriber_send_proc_test() ->
    watchdog:start(),
    watchdog:add_proc_subscriber(self()),
    watchdog:message(finicky),
    ?assert(receive {watchdog,_,_,user,finicky} -> true after 0 -> false end),
    watchdog:stop().
  
  subs_send_proc_test() ->
  
negative.code:   {ok,LD#ld{subscribers=delete_subscriber(Key,LD)}};
  handle_call({add_subscriber,{Key,Val}},_,LD) ->
    {ok,LD#ld{subscribers=add_subscriber(Key,Val,LD)}}.
  
  handle_cast({user,Data},LD) -> % data from user
    NLD = LD#ld{userData=Data},
    try do_user(check_jailed(NLD,userData))
    catch _ -> NLD
    end.
  
  % events
  handle_info(trigger,LD) -> % fake trigger for debugging
  