From eb8b95db65b701ceed13d34350fe2f635d7d9eb5 Mon Sep 17 00:00:00 2001 From: Peter Andersson Date: Wed, 28 Jan 2015 15:21:24 +0100 Subject: Add tests --- .../cth/tests/ct_cth_fail_one_skip_one_SUITE.erl | 9 ++++++++- .../test/ct_hooks_SUITE_data/cth/tests/minimal_terminate_cth.erl | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'lib/common_test/test/ct_hooks_SUITE_data/cth/tests') diff --git a/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/ct_cth_fail_one_skip_one_SUITE.erl b/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/ct_cth_fail_one_skip_one_SUITE.erl index b2f22d8257..7b84c246ca 100644 --- a/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/ct_cth_fail_one_skip_one_SUITE.erl +++ b/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/ct_cth_fail_one_skip_one_SUITE.erl @@ -41,6 +41,8 @@ end_per_group(_Group,_Config) -> init_per_testcase(test_case2, Config) -> {skip,"skip it"}; +init_per_testcase(test_case3, Config) -> + {skipped,"skip it"}; init_per_testcase(_TestCase, Config) -> Config. @@ -48,7 +50,9 @@ end_per_testcase(_TestCase, _Config) -> ok. groups() -> - [{group1,[parallel],[{group2,[parallel],[test_case1,test_case2,test_case3]}]}]. + [{group1,[parallel], + [{group2,[parallel], + [test_case1,test_case2,test_case3,test_case4]}]}]. all() -> [{group,group1}]. @@ -62,3 +66,6 @@ test_case2(Config) -> test_case3(Config) -> ok. + +test_case4(Config) -> + ok. diff --git a/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/minimal_terminate_cth.erl b/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/minimal_terminate_cth.erl index 30721a6b3a..436470f46d 100644 --- a/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/minimal_terminate_cth.erl +++ b/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/minimal_terminate_cth.erl @@ -28,10 +28,14 @@ %% CT Hooks -export([init/2]). -export([terminate/1]). +-export([on_tc_skip/3]). init(Id, Opts) -> empty_cth:init(Id, Opts). +on_tc_skip(TC, Reason, State) -> + empty_cth:on_tc_skip(TC,Reason,State). + terminate(State) -> empty_cth:terminate(State). -- cgit v1.2.3