diff options
author | Dan Gudmundsson <[email protected]> | 2016-05-25 11:44:36 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2016-06-13 14:17:06 +0200 |
commit | a238e070e3f498b0fdb4112fd8467ef70a681e11 (patch) | |
tree | 9568d1dd20963a77b9601decb7fcd421c04079c5 /lib/mnesia/test/mnesia_recovery_test.erl | |
parent | dc7a9952e5ad59f3096934df4f90d877c6efe833 (diff) | |
download | otp-a238e070e3f498b0fdb4112fd8467ef70a681e11.tar.gz otp-a238e070e3f498b0fdb4112fd8467ef70a681e11.tar.bz2 otp-a238e070e3f498b0fdb4112fd8467ef70a681e11.zip |
Add test debug information and fix timing issues
Diffstat (limited to 'lib/mnesia/test/mnesia_recovery_test.erl')
-rw-r--r-- | lib/mnesia/test/mnesia_recovery_test.erl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/mnesia/test/mnesia_recovery_test.erl b/lib/mnesia/test/mnesia_recovery_test.erl index 2388b595d0..130b87346f 100644 --- a/lib/mnesia/test/mnesia_recovery_test.erl +++ b/lib/mnesia/test/mnesia_recovery_test.erl @@ -504,12 +504,21 @@ with_checkpoint(Config, Type) when is_list(Config) -> ?match(ok, mnesia:deactivate_checkpoint(sune)), ?match([], check_chkp(Nodes)), + Wait = fun(Loop) -> + timer:sleep(300), + sys:get_status(mnesia_monitor), + case lists:member(Kill, mnesia_lib:val({current, db_nodes})) of + true -> Loop(Loop); + false -> ok + end + end, + case Kill of Node1 -> ignore; Node2 -> mnesia_test_lib:kill_mnesia([Kill]), - timer:sleep(500), %% Just to help debugging + Wait(Wait), ?match({ok, sune, _}, mnesia:activate_checkpoint([{name, sune}, {max, mnesia:system_info(tables)}, {ram_overrides_dump, true}])), |