aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/test/mnesia_evil_coverage_test.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2013-06-04 15:46:20 +0200
committerDan Gudmundsson <[email protected]>2013-06-04 15:46:20 +0200
commit927982b8754ceada8b6d76225475f54b410de9e9 (patch)
treeba9e393c664da3b836ef8b12018b2da77cafaf15 /lib/mnesia/test/mnesia_evil_coverage_test.erl
parented22252022f5627bee92c0c2e45450c875ad5868 (diff)
downloadotp-927982b8754ceada8b6d76225475f54b410de9e9.tar.gz
otp-927982b8754ceada8b6d76225475f54b410de9e9.tar.bz2
otp-927982b8754ceada8b6d76225475f54b410de9e9.zip
mnesia: Fix unsubscribe error handling
Diffstat (limited to 'lib/mnesia/test/mnesia_evil_coverage_test.erl')
-rw-r--r--lib/mnesia/test/mnesia_evil_coverage_test.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mnesia/test/mnesia_evil_coverage_test.erl b/lib/mnesia/test/mnesia_evil_coverage_test.erl
index 0df245b75d..db23a39943 100644
--- a/lib/mnesia/test/mnesia_evil_coverage_test.erl
+++ b/lib/mnesia/test/mnesia_evil_coverage_test.erl
@@ -1985,6 +1985,10 @@ subscribe_standard(Config) when is_list(Config)->
?match({atomic, ok}, mnesia:create_table(Tab, Def)),
%% Check system events
+ ?match({error, {badarg, foo}}, mnesia:unsubscribe(foo)),
+ ?match({error, badarg}, mnesia:unsubscribe({table, foo})),
+ ?match(_, mnesia:unsubscribe(activity)),
+
?match({ok, N1}, mnesia:subscribe(system)),
?match({ok, N1}, mnesia:subscribe(activity)),