aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger/test
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2014-02-04 02:47:59 +0100
committerAnthony Ramine <[email protected]>2014-02-10 15:19:07 +0100
commitfb8b207dff92916b1525ed1461dac96ce0922a4d (patch)
treed5cbbd3100bd07c5a9bf1bdcc768a48debdbb8c5 /lib/debugger/test
parent23790daf1a2d384b0fc11c655fa825151d9fa420 (diff)
downloadotp-fb8b207dff92916b1525ed1461dac96ce0922a4d.tar.gz
otp-fb8b207dff92916b1525ed1461dac96ce0922a4d.tar.bz2
otp-fb8b207dff92916b1525ed1461dac96ce0922a4d.zip
Truly test debugger in erl_eval_SUITE copy
The module was not interpreted. This surfaced two bugs, related to shadowed variables in binary patterns in comprehension generators, and guard filters not properly detected. The guard detection code from dbg_iload is deleted in favor of erl_lint:is_guard_test/1. The erl_lint module is now safe to use because it can handle all expressions emitted by sys_pre_expand, the following warning is thus obsolete and has been removed from code: %% Cannot use erl_lint here as sys_pre_expand has transformed source.
Diffstat (limited to 'lib/debugger/test')
-rw-r--r--lib/debugger/test/erl_eval_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/debugger/test/erl_eval_SUITE.erl b/lib/debugger/test/erl_eval_SUITE.erl
index bb2669f450..2e9c9570b5 100644
--- a/lib/debugger/test/erl_eval_SUITE.erl
+++ b/lib/debugger/test/erl_eval_SUITE.erl
@@ -63,6 +63,7 @@ config(priv_dir,_) ->
% Default timetrap timeout (set in init_per_testcase).
-define(default_timeout, ?t:minutes(1)).
init_per_testcase(_Case, Config) ->
+ test_lib:interpret(?MODULE),
?line Dog = ?t:timetrap(?default_timeout),
[{watchdog, Dog} | Config].
end_per_testcase(_Case, Config) ->