Trims down unnecessary test cases for Stacks
authorPeizhao Ou <peizhaoo@uci.edu>
Wed, 29 Nov 2017 08:38:25 +0000 (00:38 -0800)
committerPeizhao Ou <peizhaoo@uci.edu>
Wed, 29 Nov 2017 08:38:25 +0000 (00:38 -0800)
test/stress/stack/intrusive_push_pop.cpp
test/stress/stack/intrusive_stack_type.h
test/stress/stack/push.cpp
test/stress/stack/push_pop.cpp
test/stress/stack/stack_type.h

index 176f20f..1b42e4b 100644 (file)
@@ -173,7 +173,7 @@ namespace {
         test_std< stack_type >(); \
     }
 
-    CDSSTRESS_StdStack( intrusive_stack_push_pop )
+    //CDSSTRESS_StdStack( intrusive_stack_push_pop )
 
 #undef CDSSTRESS_Stack_F
 
index 87cdba5..e33506e 100644 (file)
@@ -413,66 +413,43 @@ namespace cds_test {
 
 #define CDSSTRESS_TreiberStack_HP( test_fixture ) \
     CDSSTRESS_Stack_F( test_fixture, Treiber_HP        ) \
-    CDSSTRESS_Stack_F( test_fixture, Treiber_HP_seqcst ) \
     CDSSTRESS_Stack_F( test_fixture, Treiber_HP_pause  ) \
-    CDSSTRESS_Stack_F( test_fixture, Treiber_HP_exp    ) \
-    CDSSTRESS_Stack_F( test_fixture, Treiber_HP_stat   ) \
+    CDSSTRESS_Stack_F( test_fixture, Treiber_HP_exp    )
 
 #define CDSSTRESS_TreiberStack_DHP( test_fixture ) \
     CDSSTRESS_Stack_F( test_fixture, Treiber_DHP       ) \
     CDSSTRESS_Stack_F( test_fixture, Treiber_DHP_pause ) \
-    CDSSTRESS_Stack_F( test_fixture, Treiber_DHP_exp   ) \
-    CDSSTRESS_Stack_F( test_fixture, Treiber_DHP_stat  )
+    CDSSTRESS_Stack_F( test_fixture, Treiber_DHP_exp   )
 
 
 #define CDSSTRESS_EliminationStack_HP( test_fixture ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_HP ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_HP_2ms ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_HP_2ms_stat ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_HP_5ms ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_HP_5ms_stat ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_HP_10ms ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_HP_10ms_stat ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_HP_seqcst ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_HP_pause ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_HP_exp ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_HP_stat ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_HP_dyn ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_HP_dyn_stat ) \
+    CDSSTRESS_Stack_F( test_fixture, Elimination_HP_dyn )
 
 
 #define CDSSTRESS_EliminationStack_DHP( test_fixture ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_DHP ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_seqcst ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_2ms ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_2ms_stat ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_5ms ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_5ms_stat ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_10ms ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_10ms_stat ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_pause ) \
     CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_exp ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_stat ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_dyn ) \
-    CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_dyn_stat )
+    CDSSTRESS_Stack_F( test_fixture, Elimination_DHP_dyn )
 
 #define CDSSTRESS_FCStack_slist( test_fixture ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_slist ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_slist_stat ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_slist_elimination ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_slist_elimination_stat ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_slist_mutex_stat ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_slist_mutex_elimination ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_slist_mutex_elimination_stat ) \
+    CDSSTRESS_Stack_F( test_fixture, FCStack_slist_mutex_elimination )
 
 #define CDSSTRESS_FCStack_list( test_fixture ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_list ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_list_stat ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_list_elimination ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_list_elimination_stat ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_list_mutex_stat ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_list_mutex_elimination ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_list_mutex_elimination_stat )
+    CDSSTRESS_Stack_F( test_fixture, FCStack_list_mutex_elimination )
 
 #define CDSSTRESS_StdStack( test_fixture ) \
     CDSSTRESS_Stack_F( test_fixture, StdStack_Deque_Mutex  ) \
index 1ba57d7..5d0b868 100644 (file)
@@ -204,6 +204,5 @@ namespace {
     CDSSTRESS_EliminationStack( stack_push )
     CDSSTRESS_FCStack( stack_push )
     CDSSTRESS_FCDeque( stack_push )
-    CDSSTRESS_StdStack( stack_push )
 
 } // namespace
index 4ed882d..c335366 100644 (file)
@@ -281,6 +281,5 @@ namespace {
     CDSSTRESS_EliminationStack( stack_push_pop )
     CDSSTRESS_FCStack( stack_push_pop )
     CDSSTRESS_FCDeque( stack_push_pop )
-    CDSSTRESS_StdStack( stack_push_pop )
 
 } // namespace
index a9a7350..8ae69cd 100644 (file)
@@ -492,70 +492,46 @@ namespace cds_test {
 
 #define CDSSTRESS_TreiberStack( test_fixture ) \
     CDSSTRESS_Stack_F( test_fixture, Treiber_HP )        \
-    CDSSTRESS_Stack_F( test_fixture, Treiber_HP_seqcst ) \
     CDSSTRESS_Stack_F( test_fixture, Treiber_HP_pause )  \
     CDSSTRESS_Stack_F( test_fixture, Treiber_HP_exp )    \
-    CDSSTRESS_Stack_F( test_fixture, Treiber_HP_stat   ) \
     CDSSTRESS_Stack_F( test_fixture, Treiber_DHP       ) \
     CDSSTRESS_Stack_F( test_fixture, Treiber_DHP_pause ) \
-    CDSSTRESS_Stack_F( test_fixture, Treiber_DHP_exp   ) \
-    CDSSTRESS_Stack_F( test_fixture, Treiber_DHP_stat  ) \
+    CDSSTRESS_Stack_F( test_fixture, Treiber_DHP_exp   )
 
 #define CDSSTRESS_EliminationStack( test_fixture ) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP        ) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_2ms    ) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_2ms_stat) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_5ms    ) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_5ms_stat) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_10ms    ) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_10ms_stat) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_seqcst ) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_pause  ) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_exp    ) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_stat   ) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_dyn    ) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_HP_dyn_stat) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP       ) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_2ms    ) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_2ms_stat) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_5ms    ) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_5ms_stat) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_10ms    ) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_10ms_stat) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_pause ) \
     CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_exp   ) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_stat  ) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_dyn   ) \
-    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_dyn_stat)
+    CDSSTRESS_EliminationStack_F( test_fixture, Elimination_DHP_dyn   )
 
 #define CDSSTRESS_FCStack( test_fixture ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_deque ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_deque_mutex ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_deque_stat ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_deque_elimination ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_deque_elimination_stat ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_vector ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_vector_mutex ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_vector_stat ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_vector_elimination ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_vector_elimination_stat ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_list ) \
     CDSSTRESS_Stack_F( test_fixture, FCStack_list_mutex ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_list_stat ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_list_elimination ) \
-    CDSSTRESS_Stack_F( test_fixture, FCStack_list_elimination_stat )
+    CDSSTRESS_Stack_F( test_fixture, FCStack_list_elimination )
 
 #define CDSSTRESS_FCDeque( test_fixture ) \
     CDSSTRESS_Stack_F( test_fixture, FCDequeL_default ) \
     CDSSTRESS_Stack_F( test_fixture, FCDequeL_mutex ) \
-    CDSSTRESS_Stack_F( test_fixture, FCDequeL_stat ) \
     CDSSTRESS_Stack_F( test_fixture, FCDequeL_elimination ) \
-    CDSSTRESS_Stack_F( test_fixture, FCDequeL_elimination_stat ) \
     CDSSTRESS_Stack_F( test_fixture, FCDequeR_default ) \
     CDSSTRESS_Stack_F( test_fixture, FCDequeR_mutex ) \
-    CDSSTRESS_Stack_F( test_fixture, FCDequeR_stat ) \
-    CDSSTRESS_Stack_F( test_fixture, FCDequeR_elimination ) \
-    CDSSTRESS_Stack_F( test_fixture, FCDequeR_elimination_stat )
+    CDSSTRESS_Stack_F( test_fixture, FCDequeR_elimination )
 
 #define CDSSTRESS_StdStack( test_fixture ) \
     CDSSTRESS_Stack_F( test_fixture, StdStack_Deque_Mutex  ) \