aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger/test
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2013-12-15 00:30:53 +0100
committerAnthony Ramine <[email protected]>2013-12-15 01:05:02 +0100
commit54e156806ccbcaa83c7bf099b773eddfed4f28ff (patch)
treea519f3532288465ba59f93533ed32762c7868ca7 /lib/debugger/test
parent25237481ccccd3ddfa74582dc267632ad618ba30 (diff)
downloadotp-54e156806ccbcaa83c7bf099b773eddfed4f28ff.tar.gz
otp-54e156806ccbcaa83c7bf099b773eddfed4f28ff.tar.bz2
otp-54e156806ccbcaa83c7bf099b773eddfed4f28ff.zip
Fix evaluation of andalso and orelse in the debugger
Their exporting rules were not respected.
Diffstat (limited to 'lib/debugger/test')
-rw-r--r--lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl b/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl
index c5c6a56363..ab485fd350 100644
--- a/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl
+++ b/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl
@@ -236,4 +236,8 @@ otp_8310() ->
(catch {a, [X || X <- a]}),
{'EXIT',{{bad_generator,b},_}} =
(catch {a, << <<X>> || << X >> <= b >>}),
+ true = begin (X1 = true) andalso X1, X1 end,
+ false = begin (X2 = false) andalso X2, X2 end,
+ true = begin (X3 = true) orelse X3, X3 end,
+ false = begin (X4 = false) orelse X4, X4 end,
ok.