aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/misc_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-02-18 07:35:52 +0100
committerBjörn Gustavsson <[email protected]>2015-02-18 13:17:39 +0100
commit2d7301621039352a225d7dfa55f3228c96680171 (patch)
treedebfd6bb37c229568eb0c5c9e6e44c69eb347618 /lib/compiler/test/misc_SUITE.erl
parent912fea0b712a9d16a3361cd1ff83161013eb0e9e (diff)
downloadotp-2d7301621039352a225d7dfa55f3228c96680171.tar.gz
otp-2d7301621039352a225d7dfa55f3228c96680171.tar.bz2
otp-2d7301621039352a225d7dfa55f3228c96680171.zip
beam_validator: Exit immediately on crashes
The beam_validator catches all exceptions and collect them. It makes more sense to don't catch 'error' and 'exit' exceptions, but to just print out the name of the current function and pass on the exception just as all other compilation passes do. Those kind of exceptions are the symptoms of the kind of severe but easily catched bugs that occur during development.
Diffstat (limited to 'lib/compiler/test/misc_SUITE.erl')
-rw-r--r--lib/compiler/test/misc_SUITE.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/compiler/test/misc_SUITE.erl b/lib/compiler/test/misc_SUITE.erl
index d721a86f5a..68a31f14d5 100644
--- a/lib/compiler/test/misc_SUITE.erl
+++ b/lib/compiler/test/misc_SUITE.erl
@@ -280,6 +280,14 @@ silly_coverage(Config) when is_list(Config) ->
{label,2}|non_proper_list]}],99},
expect_error(fun() -> beam_z:module(BeamZInput, []) end),
+ %% beam_validator.
+ BeamValInput = {?MODULE,[{foo,0}],[],
+ [{function,foo,0,2,
+ [{label,1},
+ {func_info,{atom,?MODULE},{atom,foo},0},
+ {label,2}|non_proper_list]}],99},
+ expect_error(fun() -> beam_validator:module(BeamValInput, []) end),
+
ok.
expect_error(Fun) ->