aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/test
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-02-17 12:32:10 +0100
committerDan Gudmundsson <[email protected]>2015-02-17 12:32:10 +0100
commit77eeb9aa6295c275ebed135a3ac9339dcb61cef2 (patch)
tree7550a4c8755724539547eea10ff90df55abeffa9 /lib/mnesia/test
parentcde9cccfa1c4c262cccfb87299689e11c9cc8677 (diff)
downloadotp-77eeb9aa6295c275ebed135a3ac9339dcb61cef2.tar.gz
otp-77eeb9aa6295c275ebed135a3ac9339dcb61cef2.tar.bz2
otp-77eeb9aa6295c275ebed135a3ac9339dcb61cef2.zip
Add Debug info
Diffstat (limited to 'lib/mnesia/test')
-rw-r--r--lib/mnesia/test/mnesia_recovery_test.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/mnesia/test/mnesia_recovery_test.erl b/lib/mnesia/test/mnesia_recovery_test.erl
index fe4526878c..946a9f97ba 100644
--- a/lib/mnesia/test/mnesia_recovery_test.erl
+++ b/lib/mnesia/test/mnesia_recovery_test.erl
@@ -340,8 +340,12 @@ reader(Tab, OP) ->
?error("Expected ~p Got ~p ~n", [[{Tab, key, val}], Else]),
erlang:error(test_failed)
end,
- receive Pid ->
- Pid ! ok
+ receive
+ Pid when is_pid(Pid) ->
+ Pid ! ok;
+ Other ->
+ io:format("Msg: ~p~n", [Other]),
+ error(Other)
after 50 ->
reader(Tab, OP)
end.