aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test/ct_error_SUITE_data/error/test/cfg_error_9_SUITE.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2011-04-19 15:54:37 +0200
committerPeter Andersson <[email protected]>2011-04-28 22:45:57 +0200
commit4e506a1997af07de7223a307418457ba36bb520c (patch)
treee90c96f828890d00d3dda7f81193b8110bf1c344 /lib/common_test/test/ct_error_SUITE_data/error/test/cfg_error_9_SUITE.erl
parent3d6fbd020322728648146789ca40c2bd1b87a9f2 (diff)
downloadotp-4e506a1997af07de7223a307418457ba36bb520c.tar.gz
otp-4e506a1997af07de7223a307418457ba36bb520c.tar.bz2
otp-4e506a1997af07de7223a307418457ba36bb520c.zip
Make it possible to fail test case by returning {fail,Reason} from init_per_testcase.
Diffstat (limited to 'lib/common_test/test/ct_error_SUITE_data/error/test/cfg_error_9_SUITE.erl')
-rw-r--r--lib/common_test/test/ct_error_SUITE_data/error/test/cfg_error_9_SUITE.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/common_test/test/ct_error_SUITE_data/error/test/cfg_error_9_SUITE.erl b/lib/common_test/test/ct_error_SUITE_data/error/test/cfg_error_9_SUITE.erl
index d73287ad62..40b7d2da47 100644
--- a/lib/common_test/test/ct_error_SUITE_data/error/test/cfg_error_9_SUITE.erl
+++ b/lib/common_test/test/ct_error_SUITE_data/error/test/cfg_error_9_SUITE.erl
@@ -83,6 +83,8 @@ init_per_testcase(tc3, Config) ->
Config;
init_per_testcase(tc4, _) ->
ok;
+init_per_testcase(tc7, _) ->
+ {fail,tc7_should_be_failed};
init_per_testcase(_, Config) ->
Config.
@@ -136,7 +138,7 @@ groups() ->
%% Reason = term()
%%--------------------------------------------------------------------
all() ->
- [tc1,tc2,tc3,tc4,tc5,tc6,
+ [tc1,tc2,tc3,tc4,tc5,tc6,tc7,
tc11,tc12,tc13,tc14].
tc1(_) ->
@@ -171,6 +173,11 @@ tc6(_) ->
ct:comment("This one should succeed but then get failed by end_tc!"),
fini.
+tc7(_) ->
+ ct:comment("This one should get failed by iptc!"),
+ fini.
+
+
tc11(_) ->
fini.
tc12(_) ->