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/unicode_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/unicode_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/unicode_SUITE.erl | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/lib/stdlib/test/unicode_SUITE.erl b/lib/stdlib/test/unicode_SUITE.erl index 81a591f433..07d63bdf22 100644 --- a/lib/stdlib/test/unicode_SUITE.erl +++ b/lib/stdlib/test/unicode_SUITE.erl @@ -21,10 +21,7 @@ -include_lib("common_test/include/ct.hrl"). --export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1, - init_per_group/2,end_per_group/2, - init_per_testcase/2, - end_per_testcase/2, +-export([all/0, suite/0,groups/0, utf8_illegal_sequences_bif/1, utf16_illegal_sequences_bif/1, random_lists/1, @@ -38,12 +35,6 @@ ex_binaries_errors_utf32_little/1, ex_binaries_errors_utf32_big/1]). -init_per_testcase(_Case, Config) -> - Config. - -end_per_testcase(_Case, _Config) -> - ok. - suite() -> [{ct_hooks,[ts_install_cth]}, {timetrap,{minutes,20}}]. @@ -63,18 +54,6 @@ groups() -> ex_binaries_errors_utf32_little, ex_binaries_errors_utf32_big]}]. -init_per_suite(Config) -> - Config. - -end_per_suite(_Config) -> - ok. - -init_per_group(_GroupName, Config) -> - Config. - -end_per_group(_GroupName, Config) -> - Config. - binaries_errors_limit(Config) when is_list(Config) -> setlimit(10), ex_binaries_errors_utf8(Config), @@ -761,6 +740,7 @@ leading_lo_surrogate_bif(HiSurr, LoSurr, End) when LoSurr =< End -> leading_lo_surrogate_bif(_, _, _) -> ok. utf8_illegal_sequences_bif(Config) when is_list(Config) -> + ct:timetrap({minutes,40}), %% valgrind needs a lot setlimit(10), ex_utf8_illegal_sequences_bif(Config), setlimit(default), |