aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/misc_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-02-18 12:44:54 +0100
committerBjörn Gustavsson <[email protected]>2019-02-18 12:44:54 +0100
commit67523dd74b9e21424b24bce05748b7e2f13c66b5 (patch)
treefeb3878da8ee4309da0a155769fe3d02cf35e6dd /lib/compiler/test/misc_SUITE.erl
parent2174af8288bc5d8c6b7f39daf7a61dcb63a53118 (diff)
parent5806007cbbfb20d7c6538e330558b5364fb7551f (diff)
downloadotp-67523dd74b9e21424b24bce05748b7e2f13c66b5.tar.gz
otp-67523dd74b9e21424b24bce05748b7e2f13c66b5.tar.bz2
otp-67523dd74b9e21424b24bce05748b7e2f13c66b5.zip
Merge branch 'bjorn/compiler/cuddle-with-tests'
* bjorn/compiler/cuddle-with-tests: inline_SUITE: Make coverage/1 test cheaper Remove compile_SUITE:big_file/1 Add test modules that disable all SSA optimizations Cover erl_bifs.erl Remove attempt to handle all bs_match_string instructions Cover exception throwing code in beam_ssa_opt Parallelize test of listing files Don't limit the number of processes when running cover
Diffstat (limited to 'lib/compiler/test/misc_SUITE.erl')
-rw-r--r--lib/compiler/test/misc_SUITE.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/compiler/test/misc_SUITE.erl b/lib/compiler/test/misc_SUITE.erl
index e999c8ffae..0f9b2dd21f 100644
--- a/lib/compiler/test/misc_SUITE.erl
+++ b/lib/compiler/test/misc_SUITE.erl
@@ -185,7 +185,6 @@ silly_coverage(Config) when is_list(Config) ->
%% beam_ssa_recv
%% beam_ssa_share
%% beam_ssa_pre_codegen
- %% beam_ssa_opt
%% beam_ssa_codegen
BadSSA = {b_module,#{},a,b,c,
[{b_function,#{func_info=>{mod,foo,0}},args,bad_blocks,0}]},
@@ -193,9 +192,15 @@ silly_coverage(Config) when is_list(Config) ->
expect_error(fun() -> beam_ssa_recv:module(BadSSA, []) end),
expect_error(fun() -> beam_ssa_share:module(BadSSA, []) end),
expect_error(fun() -> beam_ssa_pre_codegen:module(BadSSA, []) end),
- expect_error(fun() -> beam_ssa_opt:module(BadSSA, []) end),
expect_error(fun() -> beam_ssa_codegen:module(BadSSA, []) end),
+ %% beam_ssa_opt
+ BadSSABlocks = #{0 => {b_blk,#{},[bad_code],{b_ret,#{},arg}}},
+ BadSSAOpt = {b_module,#{},a,[],c,
+ [{b_function,#{func_info=>{mod,foo,0}},[],
+ BadSSABlocks,0}]},
+ expect_error(fun() -> beam_ssa_opt:module(BadSSAOpt, []) end),
+
%% beam_ssa_lint, beam_ssa_pp
{error,[{_,Errors}]} = beam_ssa_lint:module(bad_ssa_lint_input(), []),
_ = [io:put_chars(Mod:format_error(Reason)) ||