diff options
author | Björn Gustavsson <[email protected]> | 2016-05-24 08:41:30 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-05-25 16:41:26 +0200 |
commit | bb468eab3064d1e8bec5d6c6f53c60ccce2c9dc2 (patch) | |
tree | 503501fb04e438ab5a64d31cbe95fcc7f4b9866a /lib/compiler/test | |
parent | ad9ff167ab254993597ffaa84256bac0bdf5520e (diff) | |
download | otp-bb468eab3064d1e8bec5d6c6f53c60ccce2c9dc2.tar.gz otp-bb468eab3064d1e8bec5d6c6f53c60ccce2c9dc2.tar.bz2 otp-bb468eab3064d1e8bec5d6c6f53c60ccce2c9dc2.zip |
beam_receive: Don't crash when encountering nonsensical code
Diffstat (limited to 'lib/compiler/test')
-rw-r--r-- | lib/compiler/test/receive_SUITE.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/compiler/test/receive_SUITE.erl b/lib/compiler/test/receive_SUITE.erl index 3c397561fc..8304672558 100644 --- a/lib/compiler/test/receive_SUITE.erl +++ b/lib/compiler/test/receive_SUITE.erl @@ -118,8 +118,14 @@ coverage(Config) when is_list(Config) -> 59 = tuple_to_values(infinity, x), 61 = tuple_to_values(999999, x), 0 = tuple_to_values(1, x), + + {'EXIT',{{badmap,[]},_}} = (catch monitor_plus_badmap(self())), + ok. +monitor_plus_badmap(Pid) -> + monitor(process, Pid) + []#{}. + receive_all() -> receive Any -> |