Erlang Mailing Lists

Author Message

<  Erlang bugs mailing list  ~  [test-server] missleading warning

kramer at acm.org
Posted: Mon Sep 13, 2004 3:49 pm Reply with quote
Guest
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 (test_a_at_yoghurt)
=== 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, test_a_at_yoghurt} =
?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(test_a_at_yoghurt), % 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
(test_a_at_yoghurt)
% === Trying to kill it anyway!!!
%
?line true = ?t:stop_node(test_a_at_yoghurt), % node was started in
start/1 [**]

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

#



Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum