[test-server] missleading warning

Reto Kramer <>
Mon Sep 13 17:49:11 CEST 2004


This is not a big issue, but rather confusing to the newby.

If I start a node with the {cleanup, false} option and later stop it in 
another testcase function [**], I receive the warning:

     == WARNING: Attempt to stop a nonexisting slavenode ()
     ===          Trying to kill it anyway!!!

This warning is missleading in this context since the node is indeed 
running (left running). Perhaps the warning can be avoided by 
implicitly pinging the node beforehand?

Thanks,
- Reto


start(Config) when list(Config) ->
     ?line {ok, } =
	?t:start_node(
	   test_a, slave,
	   [{args, "-pa /Users/reto/sdev/discover/src/discover-1.0/ebin"},
	    {cleanup, false}]), % keep node alive until stop/1
     ...

stop(Config) when list(Config) ->
     ?line pong = net_adm:ping(), % still there

     % Note that the following warning in the output of stop/1 is 
missleading
     % since the node is in fact alive.
     %
     % == WARNING: Attempt to stop a nonexisting slavenode 
()
     % ===          Trying to kill it anyway!!!
     %
     ?line true = ?t:stop_node(), % node was started in 
start/1  [**]

     ?line pang = net_adm:ping(). % really gone

#




More information about the erlang-bugs mailing list