aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-11 14:30:41 +0100
committerBjörn Gustavsson <[email protected]>2013-02-11 14:30:41 +0100
commit5cbedbd6534c4438e8f7e3eb7b0bf4649cdd4b0c (patch)
tree3d335fb6682afb36b2f76bbf8b57b55d212bb89b /lib/stdlib/test
parentca97661807e3b986d1c1b84d92c69c51a3dcbf04 (diff)
parent6b456e94d11ffe8a9f2e361fe8143902a2b99baf (diff)
downloadotp-5cbedbd6534c4438e8f7e3eb7b0bf4649cdd4b0c.tar.gz
otp-5cbedbd6534c4438e8f7e3eb7b0bf4649cdd4b0c.tar.bz2
otp-5cbedbd6534c4438e8f7e3eb7b0bf4649cdd4b0c.zip
Merge branch 'bjorn/remove-tuple-funs/OTP-10170'
* bjorn/remove-tuple-funs/OTP-10170: erl_eval: Don't allow evaluation of {M,F} in the shell
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/erl_eval_SUITE.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stdlib/test/erl_eval_SUITE.erl b/lib/stdlib/test/erl_eval_SUITE.erl
index d3c91c7326..7ff4c81ea6 100644
--- a/lib/stdlib/test/erl_eval_SUITE.erl
+++ b/lib/stdlib/test/erl_eval_SUITE.erl
@@ -1086,6 +1086,10 @@ funs(Config) when is_list(Config) ->
"begin M = lists, F = fun M:reverse/1,"
" [1,2] = F([2,1]), ok end.",
ok),
+
+ %% Test that {M,F} is not accepted as a fun.
+ error_check("{" ?MODULE_STRING ",module_info}().",
+ {badfun,{?MODULE,module_info}}),
ok.
run_many_args({S, As}) ->