anchor.diff:        [Node, StopAgentRes, StopCryptoRes, StopMnesiaRes, StopNode]),
       Config.
   
  -init_mnesia(Node, Dir) ->
  +init_mnesia(Node, Dir, MnesiaDebug) 
  +  when ((MnesiaDebug =/= none) andalso 
  +	(MnesiaDebug =/= debug) andalso (MnesiaDebug =/= trace)) ->
  +    init_mnesia(Node, Dir, ?DEFAULT_MNESIA_DEBUG);
  +init_mnesia(Node, Dir, MnesiaDebug) ->
       ?DBG("init_mnesia -> load application mnesia", []),
       ?line ok = load_mnesia(Node),
   
       ?DBG("init_mnesia -> application mnesia: set_env dir: ~n~p",[Dir]),
       ?line ok = set_mnesia_env(Node, dir, filename:join(Dir, "mnesia")),
  +
  +    %% Just in case, only set (known to be) valid values for debug
  +    if
  +	((MnesiaDebug =:= debug) orelse (MnesiaDebug =:= trace)) ->
  +	    ?DBG("init_mnesia -> application mnesia: set_env debug: ~w", 
  +		 [MnesiaDebug]),
  +	    ?line ok = set_mnesia_env(Node, debug, MnesiaDebug);
  +	true ->
  +	    ok
  +    end,
   
       ?DBG("init_mnesia -> create mnesia schema",[]),
       ?line case create_schema(Node) of
  
positive.code: 
  -define(NS_TIMEOUT,     10000).
  
  
  %%----------------------------------------------------------------------
  %% Records
  
negative.code: 	 simple_async_get_bulk1,
  	 misc_async1
  	],
      Result = 
  	case lists:member(Case, DeprecatedApiCases) of
  	    true ->
  		%% ?SKIP(api_no_longer_supported);
  		{skip, api_no_longer_supported};
  	    false ->
  		init_per_testcase2(Case, Config)
  	end,
      p(Case, "init_per_testcase end when"
        "~n      Nodes:  ~p"
        "~n      Result: ~p"
        "~n~n", [Result, erlang:nodes()]),
      Result.
  
  init_per_testcase2(Case, Config) ->
      ?DBG("init_per_testcase2 -> "
  	 "~n   Case:   ~p"
  	 "~n   Config: ~p"
  	 "~n   Nodes:  ~p", [Case, Config, erlang:nodes()]),
  
      CaseTopDir = snmp_test_lib:init_testcase_top_dir(Case, Config), 
  
  