diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-05-27 18:54:13 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-05-27 18:54:13 +0200 |
commit | 9d34b2abed25ab304c345bef922b0632af9d2cdf (patch) | |
tree | 5858f13eafa78870b5847837ce93e8a658e42f94 /lib/stdlib/test/select_SUITE.erl | |
parent | cc66230916294d9a29a26c77d32e88ca38ea6927 (diff) | |
download | otp-9d34b2abed25ab304c345bef922b0632af9d2cdf.tar.gz otp-9d34b2abed25ab304c345bef922b0632af9d2cdf.tar.bz2 otp-9d34b2abed25ab304c345bef922b0632af9d2cdf.zip |
stdlib: Strengthen or relax test cases
In particular, valgrind needs a lot of time for certain tests.
Diffstat (limited to 'lib/stdlib/test/select_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/select_SUITE.erl | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/lib/stdlib/test/select_SUITE.erl b/lib/stdlib/test/select_SUITE.erl index e999d040c9..22b6d37e5d 100644 --- a/lib/stdlib/test/select_SUITE.erl +++ b/lib/stdlib/test/select_SUITE.erl @@ -59,42 +59,20 @@ config(priv_dir,_) -> ".". -else. %% When run in test server. --export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1, - init_per_group/2,end_per_group/2,select_test/1, - init_per_testcase/2, end_per_testcase/2, - return_values/1]). - -init_per_testcase(_Case, Config) -> - Config. - -end_per_testcase(_Case, _Config) -> - ok. +-export([all/0, suite/0, + select_test/1, return_values/1]). suite() -> [{ct_hooks,[ts_install_cth]}, - {timetrap,{minutes,20}}]. + {timetrap,{minutes,1}}]. all() -> [return_values, select_test]. -groups() -> - []. - -init_per_suite(Config) -> - Config. - -end_per_suite(_Config) -> - ok. - -init_per_group(_GroupName, Config) -> - Config. - -end_per_group(_GroupName, Config) -> - Config. - %% Test select in numerous ways. select_test(Config) when is_list(Config) -> + ct:timetrap({minutes,40}), %% valgrinds needs a lot of time do_test(Config). %% Test return values in specific situations for select/3 and select/1. |