Skip to content

Commit

Permalink
trycatch_SUITE: Remove out-commented after_bind/1 test case
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Apr 1, 2022
1 parent d46ced2 commit b8358ed
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions lib/compiler/test/trycatch_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1,
init_per_group/2,end_per_group/2,basic/1,lean_throw/1,
try_of/1,try_after/1,%after_bind/1,
try_of/1,try_after/1,
catch_oops/1,after_oops/1,eclectic/1,rethrow/1,
nested_of/1,nested_catch/1,nested_after/1,
nested_horrid/1,last_call_optimization/1,bool/1,
Expand Down Expand Up @@ -327,35 +327,6 @@ try_after_try(X, Y) ->
_ -> ok
end).

-ifdef(begone).

after_bind(Conf) when is_list(Conf) ->
V = [make_ref(),self()|value],
{value,{value,V}} =
after_bind_1({value,V}, V, {value,V}),
ok.

after_bind_1(X, V, Y) ->
try
Try =
try foo(X) of
V -> value
catch
C1:V -> {caught,C1}
after
After = foo(Y)
end,
{Try,After}
of
V -> {value,V}
catch
C:D -> {caught,{C,D}}
end.

-endif.



catch_oops(Conf) when is_list(Conf) ->
V = {v,[a,l|u],{e},self()},
{value,V} = catch_oops_1({value,V}),
Expand Down

0 comments on commit b8358ed

Please sign in to comment.