diff options
author | Lukas Larsson <[email protected]> | 2010-10-12 10:43:56 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-02-17 17:25:13 +0100 |
commit | 3d0f4a3085f11389e5b22d10f96f0cbf08c9337f (patch) | |
tree | 1103c2da64be7f08e523b499d9c5b35c6f6901c2 /lib/compiler/test/num_bif_SUITE.erl | |
parent | a424e5a7dffcbf4685ee3be9fdec7002fa03294b (diff) | |
download | otp-3d0f4a3085f11389e5b22d10f96f0cbf08c9337f.tar.gz otp-3d0f4a3085f11389e5b22d10f96f0cbf08c9337f.tar.bz2 otp-3d0f4a3085f11389e5b22d10f96f0cbf08c9337f.zip |
Update compiler tests to conform with common_test standard
Diffstat (limited to 'lib/compiler/test/num_bif_SUITE.erl')
-rw-r--r-- | lib/compiler/test/num_bif_SUITE.erl | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/lib/compiler/test/num_bif_SUITE.erl b/lib/compiler/test/num_bif_SUITE.erl index 912f7366dd..6861077c7b 100644 --- a/lib/compiler/test/num_bif_SUITE.erl +++ b/lib/compiler/test/num_bif_SUITE.erl @@ -18,7 +18,7 @@ %% -module(num_bif_SUITE). --include("test_server.hrl"). +-include_lib("test_server/include/test_server.hrl"). %% Tests optimization of the BIFs: %% abs/1 @@ -30,17 +30,28 @@ %% round/1 %% trunc/1 --export([all/1, t_abs/1, t_float/1, +-export([all/0,groups/0,init_per_group/2,end_per_group/2, t_abs/1, t_float/1, t_float_to_list/1, t_integer_to_list/1, t_list_to_integer/1, - t_list_to_float/1, t_list_to_float_safe/1, t_list_to_float_risky/1, + t_list_to_float_safe/1, t_list_to_float_risky/1, t_round/1, t_trunc/1]). -all(suite) -> - test_lib:recompile(?MODULE), - [t_abs, t_float, t_float_to_list, t_integer_to_list, - t_list_to_float, t_list_to_integer, - t_round, t_trunc]. +all() -> +test_lib:recompile(num_bif_SUITE), + [t_abs, t_float, t_float_to_list, t_integer_to_list, + {group, t_list_to_float}, t_list_to_integer, t_round, + t_trunc]. + +groups() -> + [{t_list_to_float, [], + [t_list_to_float_safe, t_list_to_float_risky]}]. + +init_per_group(_GroupName, Config) -> + Config. + +end_per_group(_GroupName, Config) -> + Config. + t_abs(Config) when is_list(Config) -> %% Floats. @@ -142,7 +153,6 @@ t_integer_to_list(Config) when is_list(Config) -> %% Tests list_to_float/1. -t_list_to_float(suite) -> [t_list_to_float_safe, t_list_to_float_risky]. t_list_to_float_safe(Config) when is_list(Config) -> ?line 0.0 = list_to_float("0.0"), |