aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/test/mnesia_qlc_test.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-04-03 13:43:38 +0200
committerDan Gudmundsson <[email protected]>2014-04-11 09:59:11 +0200
commitc9245f29ff5c5a59a58749cb3dceb2eaad4957e0 (patch)
tree498d6dd880a662e6c2c8389890ca3019aaaf67ce /lib/mnesia/test/mnesia_qlc_test.erl
parentbee0ea4125e8b47478b77904bee06f8f38bbab42 (diff)
downloadotp-c9245f29ff5c5a59a58749cb3dceb2eaad4957e0.tar.gz
otp-c9245f29ff5c5a59a58749cb3dceb2eaad4957e0.tar.bz2
otp-c9245f29ff5c5a59a58749cb3dceb2eaad4957e0.zip
mnesia: Improve tests
Need to re-raise the match macro if inside transaction
Diffstat (limited to 'lib/mnesia/test/mnesia_qlc_test.erl')
-rw-r--r--lib/mnesia/test/mnesia_qlc_test.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mnesia/test/mnesia_qlc_test.erl b/lib/mnesia/test/mnesia_qlc_test.erl
index 5f46840ae9..9886754710 100644
--- a/lib/mnesia/test/mnesia_qlc_test.erl
+++ b/lib/mnesia/test/mnesia_qlc_test.erl
@@ -264,7 +264,7 @@ atomic_eval(Config) ->
?match({1,[{a,{a,9},91}]}, ok(Restart,[Pid3, Cursor])),
QC1 = ok(fun() -> qlc:cursor(Q1) end, []),
- ?match({'EXIT', _}, qlc:next_answers(QC1)),
+ ?match({'EXIT', _}, (catch qlc:next_answers(QC1))),
?match({aborted,_}, ok(fun()->qlc:next_answers(QC1)end,[])),
?verify_mnesia(Ns, []).