aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/nofrag_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-08-22 09:59:12 +0200
committerBjörn Gustavsson <[email protected]>2012-08-22 09:59:12 +0200
commit17a65ee1d0aaedc0d52b4d3ba97f64f7ec7fcfa4 (patch)
tree2070e8644760199831303af51b76fbe146b04b9b /erts/emulator/test/nofrag_SUITE.erl
parent2502f65bd14be4132a12c6fb7fd51c227603a017 (diff)
parentde7e01c958ff7c9e6da4034a53567a30a4ae5792 (diff)
downloadotp-17a65ee1d0aaedc0d52b4d3ba97f64f7ec7fcfa4.tar.gz
otp-17a65ee1d0aaedc0d52b4d3ba97f64f7ec7fcfa4.tar.bz2
otp-17a65ee1d0aaedc0d52b4d3ba97f64f7ec7fcfa4.zip
Merge branch 'bjorn/remove-tuple-funs/OTP-10170'
* bjorn/remove-tuple-funs/OTP-10170: Remove support for tuple funs
Diffstat (limited to 'erts/emulator/test/nofrag_SUITE.erl')
-rw-r--r--erts/emulator/test/nofrag_SUITE.erl26
1 files changed, 1 insertions, 25 deletions
diff --git a/erts/emulator/test/nofrag_SUITE.erl b/erts/emulator/test/nofrag_SUITE.erl
index 6b6ac28e2e..71567ed0cb 100644
--- a/erts/emulator/test/nofrag_SUITE.erl
+++ b/erts/emulator/test/nofrag_SUITE.erl
@@ -26,7 +26,6 @@
init_per_testcase/2,end_per_testcase/2,
error_handler/1,error_handler_apply/1,
error_handler_fixed_apply/1,error_handler_fun/1,
- error_handler_tuple_fun/1,
debug_breakpoint/1]).
%% Exported functions for an error_handler module.
@@ -37,7 +36,7 @@ suite() -> [{ct_hooks,[ts_install_cth]}].
all() ->
[error_handler, error_handler_apply,
error_handler_fixed_apply, error_handler_fun,
- error_handler_tuple_fun, debug_breakpoint].
+ debug_breakpoint].
groups() ->
[].
@@ -178,29 +177,6 @@ collect_fun(N, Fun) ->
undefined_lambda(foobarblurf, Fun, Args) when is_function(Fun) ->
Args.
-error_handler_tuple_fun(Config) when is_list(Config) ->
- ?line process_flag(error_handler, ?MODULE),
- ?line Term = collect_tuple_fun(1024, {?MODULE,very_undefined_function}),
- ?line Term = binary_to_term(term_to_binary(Term)),
- ?line 1024 = length(Term),
- ?line [[{foo,bar},42.0,[e,f,g]]] = lists:usort(Term),
- ok.
-
-collect_tuple_fun(0, _) ->
- [];
-collect_tuple_fun(N, Fun) ->
- %% The next line calls the error handle function, which is
- %% ?MODULE:undefined_function/3 (it simply returns the list
- %% of args).
- C = Fun({foo,id(bar)}, 42.0, [e,f,id(g)]),
-
- %% The variable C will be saved onto the stack frame; if C
- %% points into a heap fragment the garbage collector will reach
- %% it and the emulator will crash sooner or later (sooner if
- %% the emulator is debug-compiled).
- Res = collect_tuple_fun(N-1, Fun),
- [C|Res].
-
debug_breakpoint(Config) when is_list(Config) ->
?line process_flag(error_handler, ?MODULE),
?line erts_debug:breakpoint({?MODULE,foobar,5}, true),