aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-02-27 11:48:27 +0100
committerBjörn Gustavsson <[email protected]>2019-02-27 14:28:13 +0100
commit5e2d3bc0b4fdd0aba18f8b6dda5d22d2febff32a (patch)
tree580f1b7f4174f026126ba4f3737827a33e553e76 /lib/stdlib/test
parent8967a65b28fd9e7b705c619aac16328125f2d1bf (diff)
downloadotp-5e2d3bc0b4fdd0aba18f8b6dda5d22d2febff32a.tar.gz
otp-5e2d3bc0b4fdd0aba18f8b6dda5d22d2febff32a.tar.bz2
otp-5e2d3bc0b4fdd0aba18f8b6dda5d22d2febff32a.zip
Fix failing test case qlc_SUITE:lookup2/1
5239eb0c62a9 removed some optimizations in `sys_core_fold`, and because of that two warnings are no longer emitted.
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/qlc_SUITE.erl10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/stdlib/test/qlc_SUITE.erl b/lib/stdlib/test/qlc_SUITE.erl
index d7354438f9..2354a08f78 100644
--- a/lib/stdlib/test/qlc_SUITE.erl
+++ b/lib/stdlib/test/qlc_SUITE.erl
@@ -3163,19 +3163,13 @@ lookup2(Config) when is_list(Config) ->
[a] = lookup_keys(Q)
end, [{a},{b},{c}])">>,
- {cres,
- <<"etsc(fun(E) ->
+ <<"etsc(fun(E) ->
Q = qlc:q([X || {X}=Y <- ets:table(E),
element(2, Y) == b,
X =:= 1]),
[] = qlc:e(Q),
false = lookup_keys(Q)
- end, [{1,b},{2,3}])">>,
- %% {warnings,[{2,sys_core_fold,nomatch_guard},
- %% {3,qlc,nomatch_filter},
- %% {3,sys_core_fold,{eval_failure,badarg}}]}},
- {warnings,[{2,sys_core_fold,nomatch_guard},
- {3,sys_core_fold,{eval_failure,badarg}}]}},
+ end, [{1,b},{2,3}])">>,
<<"etsc(fun(E) ->
Q = qlc:q([X || {X} <- ets:table(E), element(1,{X}) =:= 1]),