diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-11-07 10:57:32 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-11-07 10:57:32 +0100 |
commit | a8f4d0d3a95f2b94bff496b25797c15cf7154d85 (patch) | |
tree | 7b24d9ab86aece45ecf61ead9fa75c1e6958591c /lib/stdlib/test/rand_SUITE.erl | |
parent | 2dc2442055672245b612552bd767c8d4e09bc7ae (diff) | |
parent | 5d19d638d164f39e6d060ab834fc30cb42252876 (diff) | |
download | otp-a8f4d0d3a95f2b94bff496b25797c15cf7154d85.tar.gz otp-a8f4d0d3a95f2b94bff496b25797c15cf7154d85.tar.bz2 otp-a8f4d0d3a95f2b94bff496b25797c15cf7154d85.zip |
Merge branch 'egil/erts/cuddle-tests' into maint
* egil/erts/cuddle-tests:
stdlib: Increase timeouts in ets_SUITE
stdlib: Increase timeouts in rand_SUITE
stdlib: Increase timeouts in base64_SUITE
erts: Use cmd on windows for port_SUITE
Diffstat (limited to 'lib/stdlib/test/rand_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/rand_SUITE.erl | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/lib/stdlib/test/rand_SUITE.erl b/lib/stdlib/test/rand_SUITE.erl index cb778c96d4..02b7cb10c2 100644 --- a/lib/stdlib/test/rand_SUITE.erl +++ b/lib/stdlib/test/rand_SUITE.erl @@ -18,7 +18,11 @@ %% %CopyrightEnd% -module(rand_SUITE). --export([all/0, suite/0,groups/0]). +-compile({nowarn_deprecated_function,[{random,seed,1}, + {random,uniform_s,1}, + {random,uniform_s,2}]}). + +-export([all/0, suite/0, groups/0, group/1]). -export([interval_int/1, interval_float/1, seed/1, api_eq/1, reference/1, @@ -47,18 +51,22 @@ groups() -> [{basic_stats, [parallel], [basic_stats_uniform_1, basic_stats_uniform_2, basic_stats_normal]}]. +group(basic_stats) -> + %% valgrind needs a lot of time + [{timetrap,{minutes,10}}]. + %% A simple helper to test without test_server during dev test() -> Tests = all(), lists:foreach(fun(Test) -> - try - ok = ?MODULE:Test([]), - io:format("~p: ok~n", [Test]) - catch _:Reason -> - io:format("Failed: ~p: ~p ~p~n", - [Test, Reason, erlang:get_stacktrace()]) - end - end, Tests). + try + ok = ?MODULE:Test([]), + io:format("~p: ok~n", [Test]) + catch _:Reason -> + io:format("Failed: ~p: ~p ~p~n", + [Test, Reason, erlang:get_stacktrace()]) + end + end, Tests). algs() -> [exs64, exsplus, exs1024]. |