aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-05-08 11:40:07 +0200
committerRaimo Niskanen <[email protected]>2010-05-20 12:20:51 +0200
commitc9461bb19009804a2646ee81078dadaa4fd7294a (patch)
treebe68c4f0775c076d8b1e0e326cc65b0409228d53 /lib
parent5ab37cb8998d5db126aa1dc9e8ac6a382e7f53ca (diff)
downloadotp-c9461bb19009804a2646ee81078dadaa4fd7294a.tar.gz
otp-c9461bb19009804a2646ee81078dadaa4fd7294a.tar.bz2
otp-c9461bb19009804a2646ee81078dadaa4fd7294a.zip
v3_life tests: Cover exception handling code in v3_life:function/1
Diffstat (limited to 'lib')
-rw-r--r--lib/compiler/test/misc_SUITE.erl12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/compiler/test/misc_SUITE.erl b/lib/compiler/test/misc_SUITE.erl
index 793c53ac31..126a679724 100644
--- a/lib/compiler/test/misc_SUITE.erl
+++ b/lib/compiler/test/misc_SUITE.erl
@@ -104,7 +104,17 @@ silly_coverage(Config) when is_list(Config) ->
?line expect_error(fun() -> sys_core_dsetel:module(BadCoreErlang, []) end),
?line expect_error(fun() -> v3_kernel:module(BadCoreErlang, []) end),
- %% v3_codgen
+ %% v3_life
+ BadKernel = {k_mdef,[],?MODULE,
+ [{foo,0}],
+ [],
+ [{k_fdef,
+ {k,[],[],[]},
+ f,0,[],
+ seriously_bad_body}]},
+ ?line expect_error(fun() -> v3_life:module(BadKernel, []) end),
+
+ %% v3_codegen
CodegenInput = {?MODULE,[{foo,0}],[],[{function,foo,0,[a|b],a,b}]},
?line expect_error(fun() -> v3_codegen:module(CodegenInput, []) end),