aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-05-22 11:38:44 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-05-25 11:37:42 +0200
commit467e3bbd68c8ff8b3c11c9e04bf4efc7e5ee228c (patch)
tree3ff4e6c178d1021a16426bd2716cac47d92060ce /lib
parentbf33e043139eabc728cba34ce86c8b679f72f64d (diff)
downloadotp-467e3bbd68c8ff8b3c11c9e04bf4efc7e5ee228c.tar.gz
otp-467e3bbd68c8ff8b3c11c9e04bf4efc7e5ee228c.tar.bz2
otp-467e3bbd68c8ff8b3c11c9e04bf4efc7e5ee228c.zip
stdlib: Relax iterations in binary_module_SUITE:random_ref_comp/1
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/test/binary_module_SUITE.erl22
1 files changed, 13 insertions, 9 deletions
diff --git a/lib/stdlib/test/binary_module_SUITE.erl b/lib/stdlib/test/binary_module_SUITE.erl
index 685ce3a986..eddc7029af 100644
--- a/lib/stdlib/test/binary_module_SUITE.erl
+++ b/lib/stdlib/test/binary_module_SUITE.erl
@@ -995,23 +995,27 @@ random_ref_comp(doc) ->
random_ref_comp(Config) when is_list(Config) ->
put(success_counter,0),
random:seed({1271,769940,559934}),
- do_random_match_comp(5000,{1,40},{30,1000}),
+ Nr = {1,40},
+ Hr = {30,1000},
+ I1 = 1500,
+ I2 = 5,
+ do_random_match_comp(I1,Nr,Hr),
io:format("Number of successes: ~p~n",[get(success_counter)]),
- do_random_match_comp2(5000,{1,40},{30,1000}),
+ do_random_match_comp2(I1,Nr,Hr),
io:format("Number of successes: ~p~n",[get(success_counter)]),
- do_random_match_comp3(5000,{1,40},{30,1000}),
+ do_random_match_comp3(I1,Nr,Hr),
io:format("Number of successes: ~p~n",[get(success_counter)]),
- do_random_match_comp4(5000,{1,40},{30,1000}),
+ do_random_match_comp4(I1,Nr,Hr),
io:format("Number of successes: ~p~n",[get(success_counter)]),
- do_random_matches_comp(5000,{1,40},{30,1000}),
+ do_random_matches_comp(I1,Nr,Hr),
io:format("Number of successes: ~p~n",[get(success_counter)]),
- do_random_matches_comp2(5000,{1,40},{30,1000}),
+ do_random_matches_comp2(I1,Nr,Hr),
io:format("Number of successes: ~p~n",[get(success_counter)]),
- do_random_matches_comp3(5,{1,40},{30,1000}),
+ do_random_matches_comp3(I2,Nr,Hr),
erts_debug:set_internal_state(available_internal_state,true),
io:format("oldlimit: ~p~n",[ erts_debug:set_internal_state(binary_loop_limit,100)]),
- do_random_match_comp(5000,{1,40},{30,1000}),
- do_random_matches_comp3(5,{1,40},{30,1000}),
+ do_random_match_comp(I1,Nr,Hr),
+ do_random_matches_comp3(I2,Nr,Hr),
io:format("limit was: ~p~n",[ erts_debug:set_internal_state(binary_loop_limit,default)]),
erts_debug:set_internal_state(available_internal_state,false),
ok.