diff options
author | Siri Hansen <[email protected]> | 2017-03-06 08:51:22 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-03-06 08:51:22 +0100 |
commit | 0e0155410734e04556ceecb1222dd2ef956b4177 (patch) | |
tree | a714e355d78f4c96f1644ab64783a1a0a32d4da7 /lib/common_test/test/ct_hooks_SUITE_data/cth/tests/seq_SUITE.erl | |
parent | 0438c6c2c5c4a447ab3a47a443968488a0d835eb (diff) | |
parent | 50cf93672b8abb21f1455d41d333481071e6194e (diff) | |
download | otp-0e0155410734e04556ceecb1222dd2ef956b4177.tar.gz otp-0e0155410734e04556ceecb1222dd2ef956b4177.tar.bz2 otp-0e0155410734e04556ceecb1222dd2ef956b4177.zip |
Merge branch 'siri/ct_hooks/callbacks-on-skip/OTP-10599' into maint
* siri/ct_hooks/callbacks-on-skip/OTP-10599:
[ct] Update built-in ct hooks with new Suite parameter
[cth_surefire] Handle skips from test spec
[ct] Remove excessive skipped/failed tag in hook function
[ct] Send tc_start event on force_stop and failed sequence
[ct] Correctly handle process died in init and end_per_testcase
[ct] Fix faulty hook callbacks for skipped tests
Add dummy end_per_suite/1
[ct] Fix hooks and fail when one of init/end_per_* does not exit
[ct] Add Suite argument to hook callback functions
[ct] Fix function_clause in ct_framework when hook function crashes
Diffstat (limited to 'lib/common_test/test/ct_hooks_SUITE_data/cth/tests/seq_SUITE.erl')
-rw-r--r-- | lib/common_test/test/ct_hooks_SUITE_data/cth/tests/seq_SUITE.erl | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/seq_SUITE.erl b/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/seq_SUITE.erl new file mode 100644 index 0000000000..6d1302fd35 --- /dev/null +++ b/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/seq_SUITE.erl @@ -0,0 +1,45 @@ +%% +%% %CopyrightBegin% +%% +%% Copyright Ericsson AB 2010-2016. All Rights Reserved. +%% +%% Licensed under the Apache License, Version 2.0 (the "License"); +%% you may not use this file except in compliance with the License. +%% You may obtain a copy of the License at +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%% +%% %CopyrightEnd% +%% + +-module(seq_SUITE). + +-compile(export_all). + +-include("ct.hrl"). + +init_per_testcase(_,Config) -> + Config. + +end_per_testcase(_,_) -> + ok. + +all() -> + [{sequence,seq1}]. + +sequences() -> + [{seq1,[test_case_1,test_case_2]}]. + +%% Test cases starts here. +test_case_1(_Config) -> + exit(failed_on_purpose). + +test_case_2(_Config) -> + ct:fail("This test shall never be run since test_case_1 fails " + "and they are run in sequence"). |