aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2013-01-27 15:03:23 +0100
committerPeter Andersson <[email protected]>2013-01-27 16:02:02 +0100
commitdd1a44e059a5de918de7067d49df6eb00ca563b2 (patch)
tree3d15e51d173eb9e1c03d75d198be28d0e9b6c6fb /lib/common_test/test
parentc88b50bdf301b5ce17ce8f4f0d50d838e94292c6 (diff)
downloadotp-dd1a44e059a5de918de7067d49df6eb00ca563b2.tar.gz
otp-dd1a44e059a5de918de7067d49df6eb00ca563b2.tar.bz2
otp-dd1a44e059a5de918de7067d49df6eb00ca563b2.zip
Fix problem with tests running in wrong order
OTP-9881
Diffstat (limited to 'lib/common_test/test')
-rw-r--r--lib/common_test/test/ct_testspec_3_SUITE.erl104
1 files changed, 50 insertions, 54 deletions
diff --git a/lib/common_test/test/ct_testspec_3_SUITE.erl b/lib/common_test/test/ct_testspec_3_SUITE.erl
index 8b84b563ab..e2f57c2c64 100644
--- a/lib/common_test/test/ct_testspec_3_SUITE.erl
+++ b/lib/common_test/test/ct_testspec_3_SUITE.erl
@@ -331,16 +331,16 @@ test_events(start_join) ->
{?eh,test_stats,{1,2,{1,1}}},
{?eh,tc_start,{t11_SUITE,end_per_suite}},
{?eh,tc_done,{t11_SUITE,end_per_suite,ok}},
- {?eh,tc_start,{t21_SUITE,init_per_suite}},
- {?eh,tc_done,{t21_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{2,4,{2,2}}},
- {?eh,tc_start,{t21_SUITE,end_per_suite}},
- {?eh,tc_done,{t21_SUITE,end_per_suite,ok}},
{?eh,tc_start,{t12_SUITE,init_per_suite}},
{?eh,tc_done,{t12_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{3,6,{3,3}}},
+ {?eh,test_stats,{2,4,{2,2}}},
{?eh,tc_start,{t12_SUITE,end_per_suite}},
{?eh,tc_done,{t12_SUITE,end_per_suite,ok}},
+ {?eh,tc_start,{t21_SUITE,init_per_suite}},
+ {?eh,tc_done,{t21_SUITE,init_per_suite,ok}},
+ {?eh,test_stats,{3,6,{3,3}}},
+ {?eh,tc_start,{t21_SUITE,end_per_suite}},
+ {?eh,tc_done,{t21_SUITE,end_per_suite,ok}},
{?eh,tc_start,{t22_SUITE,init_per_suite}},
{?eh,tc_done,{t22_SUITE,init_per_suite,ok}},
{?eh,test_stats,{4,8,{4,4}}},
@@ -520,8 +520,7 @@ test_events(incl_separate2) ->
{?eh,stop_logging,[]}];
test_events(incl_join1) ->
- [
- {?eh,start_logging,{'DEF','RUNDIR'}},
+ [{?eh,start_logging,{'DEF','RUNDIR'}},
{?eh,test_start,{'DEF',{'START_TIME','LOGDIR'}}},
{?eh,start_info,{4,4,20}},
{?eh,tc_start,{t12_SUITE,init_per_suite}},
@@ -549,61 +548,58 @@ test_events(incl_join1) ->
{?eh,start_logging,{'DEF','RUNDIR'}},
{?eh,test_start,{'DEF',{'START_TIME','LOGDIR'}}},
{?eh,start_info,{4,4,20}},
+ {?eh,tc_start,{t22_SUITE,init_per_suite}},
+ {?eh,tc_done,{t22_SUITE,init_per_suite,ok}},
+ {?eh,test_stats,{1,2,{1,1}}},
+ {?eh,tc_start,{t22_SUITE,end_per_suite}},
+ {?eh,tc_done,{t22_SUITE,end_per_suite,ok}},
{?eh,tc_start,{t21_SUITE,init_per_suite}},
{?eh,tc_done,{t21_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{1,2,{1,1}}},
+ {?eh,test_stats,{2,4,{2,2}}},
{?eh,tc_start,{t21_SUITE,end_per_suite}},
{?eh,tc_done,{t21_SUITE,end_per_suite,ok}},
{?eh,tc_start,{t11_SUITE,init_per_suite}},
{?eh,tc_done,{t11_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{2,4,{2,2}}},
+ {?eh,test_stats,{3,6,{3,3}}},
{?eh,tc_start,{t11_SUITE,end_per_suite}},
{?eh,tc_done,{t11_SUITE,end_per_suite,ok}},
{?eh,tc_start,{t12_SUITE,init_per_suite}},
{?eh,tc_done,{t12_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{3,6,{3,3}}},
+ {?eh,test_stats,{4,8,{4,4}}},
{?eh,tc_start,{t12_SUITE,end_per_suite}},
{?eh,tc_done,{t12_SUITE,end_per_suite,ok}},
- {?eh,tc_start,{t22_SUITE,init_per_suite}},
- {?eh,tc_done,{t22_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{4,8,{4,4}}},
- {?eh,tc_start,{t22_SUITE,end_per_suite}},
- {?eh,tc_done,{t22_SUITE,end_per_suite,ok}},
{?eh,test_done,{'DEF','STOP_TIME'}},
{?eh,stop_logging,[]}];
test_events(incl_join2) ->
- [
- {?eh,start_logging,{'DEF','RUNDIR'}},
+ [{?eh,start_logging,{'DEF','RUNDIR'}},
{?eh,test_start,{'DEF',{'START_TIME','LOGDIR'}}},
{?eh,start_info,{4,4,20}},
- {?eh,tc_start,{t11_SUITE,init_per_suite}},
- {?eh,tc_done,{t11_SUITE,init_per_suite,ok}},
- {?eh,tc_start,{t11_SUITE,ok_tc}},
- {?eh,test_stats,{1,2,{1,1}}},
- {?eh,tc_start,{t11_SUITE,end_per_suite}},
- {?eh,tc_done,{t11_SUITE,end_per_suite,ok}},
- {?eh,tc_start,{t21_SUITE,init_per_suite}},
- {?eh,tc_done,{t21_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{2,4,{2,2}}},
- {?eh,tc_start,{t21_SUITE,end_per_suite}},
- {?eh,tc_done,{t21_SUITE,end_per_suite,ok}},
{?eh,tc_start,{t12_SUITE,init_per_suite}},
{?eh,tc_done,{t12_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{3,6,{3,3}}},
+ {?eh,test_stats,{1,2,{1,1}}},
{?eh,tc_start,{t12_SUITE,end_per_suite}},
{?eh,tc_done,{t12_SUITE,end_per_suite,ok}},
+ {?eh,tc_start,{t11_SUITE,init_per_suite}},
+ {?eh,tc_done,{t11_SUITE,init_per_suite,ok}},
+ {?eh,test_stats,{2,4,{2,2}}},
+ {?eh,tc_start,{t11_SUITE,end_per_suite}},
+ {?eh,tc_done,{t11_SUITE,end_per_suite,ok}},
{?eh,tc_start,{t22_SUITE,init_per_suite}},
{?eh,tc_done,{t22_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{4,8,{4,4}}},
+ {?eh,test_stats,{3,6,{3,3}}},
{?eh,tc_start,{t22_SUITE,end_per_suite}},
{?eh,tc_done,{t22_SUITE,end_per_suite,ok}},
+ {?eh,tc_start,{t21_SUITE,init_per_suite}},
+ {?eh,tc_done,{t21_SUITE,init_per_suite,ok}},
+ {?eh,test_stats,{4,8,{4,4}}},
+ {?eh,tc_start,{t21_SUITE,end_per_suite}},
+ {?eh,tc_done,{t21_SUITE,end_per_suite,ok}},
{?eh,test_done,{'DEF','STOP_TIME'}},
{?eh,stop_logging,[]}];
test_events(incl_both1) ->
- [
- {?eh,start_logging,{'DEF','RUNDIR'}},
+ [{?eh,start_logging,{'DEF','RUNDIR'}},
{?eh,test_start,{'DEF',{'START_TIME','LOGDIR'}}},
{?eh,start_info,{2,2,10}},
{?eh,tc_start,{t11_SUITE,init_per_suite}},
@@ -641,21 +637,6 @@ test_events(incl_both1) ->
{?eh,start_logging,{'DEF','RUNDIR'}},
{?eh,test_start,{'DEF',{'START_TIME','LOGDIR'}}},
{?eh,start_info,{2,2,10}},
- {?eh,tc_start,{t11_SUITE,init_per_suite}},
- {?eh,tc_done,{t11_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{1,2,{1,1}}},
- {?eh,tc_start,{t11_SUITE,end_per_suite}},
- {?eh,tc_done,{t11_SUITE,end_per_suite,ok}},
- {?eh,tc_start,{t21_SUITE,init_per_suite}},
- {?eh,tc_done,{t21_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{2,4,{2,2}}},
- {?eh,tc_start,{t21_SUITE,end_per_suite}},
- {?eh,tc_done,{t21_SUITE,end_per_suite,ok}},
- {?eh,test_done,{'DEF','STOP_TIME'}},
- {?eh,stop_logging,[]},
- {?eh,start_logging,{'DEF','RUNDIR'}},
- {?eh,test_start,{'DEF',{'START_TIME','LOGDIR'}}},
- {?eh,start_info,{2,2,10}},
{?eh,tc_start,{t12_SUITE,init_per_suite}},
{?eh,tc_done,{t12_SUITE,init_per_suite,ok}},
{?eh,test_stats,{1,2,{1,1}}},
@@ -667,13 +648,10 @@ test_events(incl_both1) ->
{?eh,tc_start,{t22_SUITE,end_per_suite}},
{?eh,tc_done,{t22_SUITE,end_per_suite,ok}},
{?eh,test_done,{'DEF','STOP_TIME'}},
- {?eh,stop_logging,[]}];
-
-test_events(incl_both2) ->
- [
+ {?eh,stop_logging,[]},
{?eh,start_logging,{'DEF','RUNDIR'}},
{?eh,test_start,{'DEF',{'START_TIME','LOGDIR'}}},
- {?eh,start_info,{4,4,20}},
+ {?eh,start_info,{2,2,10}},
{?eh,tc_start,{t11_SUITE,init_per_suite}},
{?eh,tc_done,{t11_SUITE,init_per_suite,ok}},
{?eh,test_stats,{1,2,{1,1}}},
@@ -684,11 +662,29 @@ test_events(incl_both2) ->
{?eh,test_stats,{2,4,{2,2}}},
{?eh,tc_start,{t21_SUITE,end_per_suite}},
{?eh,tc_done,{t21_SUITE,end_per_suite,ok}},
+ {?eh,test_done,{'DEF','STOP_TIME'}},
+ {?eh,stop_logging,[]}];
+
+test_events(incl_both2) ->
+ [{?eh,start_logging,{'DEF','RUNDIR'}},
+ {?eh,test_start,{'DEF',{'START_TIME','LOGDIR'}}},
+ {?eh,start_info,{4,4,20}},
+ {?eh,tc_start,{t11_SUITE,init_per_suite}},
+ {?eh,tc_done,{t11_SUITE,init_per_suite,ok}},
+ {?eh,test_stats,{1,2,{1,1}}},
+ {?eh,tc_start,{t11_SUITE,end_per_suite}},
+ {?eh,tc_done,{t11_SUITE,end_per_suite,ok}},
{?eh,tc_start,{t12_SUITE,init_per_suite}},
{?eh,tc_done,{t12_SUITE,init_per_suite,ok}},
- {?eh,test_stats,{3,6,{3,3}}},
+ {?eh,test_stats,{2,4,{2,2}}},
{?eh,tc_start,{t12_SUITE,end_per_suite}},
{?eh,tc_done,{t12_SUITE,end_per_suite,ok}},
+ {?eh,tc_start,{t21_SUITE,init_per_suite}},
+ {?eh,tc_done,{t21_SUITE,init_per_suite,ok}},
+ {?eh,tc_start,{t21_SUITE,ok_tc}},
+ {?eh,test_stats,{3,6,{3,3}}},
+ {?eh,tc_start,{t21_SUITE,end_per_suite}},
+ {?eh,tc_done,{t21_SUITE,end_per_suite,ok}},
{?eh,tc_start,{t22_SUITE,init_per_suite}},
{?eh,tc_done,{t22_SUITE,init_per_suite,ok}},
{?eh,test_stats,{4,8,{4,4}}},