Mnesia test suite tweak
Steve Elkins
sgelkins@REDACTED
Wed Sep 27 04:11:54 CEST 2000
Hi,
In case other novices stumble over this, the Mnesia test suite
mentioned in 7.4 of the FAQ...
http://www.ericsson.se/cslab/~hakan/mnesia_test_3.8.2.tgz
...has a very small problem in the 1st suggested test, 'silly'.
As written, Config goes into a nested list, like...
[[{nodes, Nodes}]]
...and silly2 (invoked from silly) fails to run. Removing the
extra []s makes mt:t(silly) run to completion, or until the 5
minute timer expires.
Regards,
Steve
--------8<-------->8--------
sge:90$ diff -c mnesia_install_test.erl.ORIG mnesia_install_test.erl
*** mnesia_install_test.erl.ORIG Mon Sep 25 22:31:03 2000
--- mnesia_install_test.erl Tue Sep 26 06:30:28 2000
***************
*** 54,60 ****
Nodes = [node()] ++ nodes(),
mnesia_test_lib:kill_mnesia(Nodes),
Config = [{nodes, Nodes}],
! mnesia_test_lib:eval_test_case(?MODULE, silly2, [Config]).
silly2(Config) when list(Config) ->
[Node1 | _] = Nodes = ?acquire_nodes(3, Config),
--- 54,60 ----
Nodes = [node()] ++ nodes(),
mnesia_test_lib:kill_mnesia(Nodes),
Config = [{nodes, Nodes}],
! mnesia_test_lib:eval_test_case(?MODULE, silly2, Config).
silly2(Config) when list(Config) ->
[Node1 | _] = Nodes = ?acquire_nodes(3, Config),
sge:91$
More information about the erlang-questions
mailing list