From 7b16f86fb5933a94b21a11391dc37562283991da Mon Sep 17 00:00:00 2001 From: Peter Andersson Date: Mon, 19 Mar 2012 12:28:11 +0100 Subject: Fix error with group config deleted before post_end_per_group OTP-9989 Also improve ct_hooks test suite. --- .../test/ct_hooks_SUITE_data/cth/tests/verify_config_cth.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/common_test/test/ct_hooks_SUITE_data/cth') diff --git a/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/verify_config_cth.erl b/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/verify_config_cth.erl index f86e1a8b01..99ea261e14 100644 --- a/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/verify_config_cth.erl +++ b/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/verify_config_cth.erl @@ -27,7 +27,7 @@ -define(val(K, L), proplists:get_value(K, L)). id(Opts) -> - empty_cth:id(Opts). + ?MODULE. init(Id, Opts) -> {ok, State} = empty_cth:init(Id, Opts), @@ -86,8 +86,7 @@ pre_end_per_group(Group,Config,State) -> post_end_per_group(Group,Config,Return,State) -> true = ?val(pre_end_per_group, Config), ct_no_config_SUITE = ct:get_config(suite_cfg), - %%! BUG! SHOULD WORK: - %%! test_group = ct:get_config(group_cfg), + test_group = ct:get_config(group_cfg), empty_cth:post_end_per_group(Group,Config,Return,State). pre_init_per_testcase(TC,Config,State) -> -- cgit v1.2.3