Disable SPSC test cases for some queues
authorPeizhao Ou <peizhaoo@uci.edu>
Thu, 15 Feb 2018 00:24:41 +0000 (16:24 -0800)
committerPeizhao Ou <peizhaoo@uci.edu>
Thu, 15 Feb 2018 00:24:41 +0000 (16:24 -0800)
test/stress/freelist/put_get_single.cpp
test/stress/queue/CMakeLists.txt
test/stress/queue/spsc_queue.cpp

index 2ac23b9..d0ebddc 100644 (file)
@@ -102,6 +102,9 @@ namespace {
                 s_nThreadCount = 1;
             if ( s_nPassCount == 0 )
                 s_nPassCount = 1000;
+
+            // Override the pass count.
+            s_nPassCount = cfg.get_size_t("PutGetSinglePassCount", s_nPassCount);
         }
         //static void TearDownTestCase();
 
index a11b55c..5d392f8 100644 (file)
@@ -60,9 +60,9 @@ set(CDSSTRESS_SPSC_QUEUE_SOURCES
     spsc_queue.cpp
     spsc_buffer.cpp
 )
-#add_executable(${CDSSTRESS_SPSC_QUEUE} ${CDSSTRESS_SPSC_QUEUE_SOURCES})
-#target_link_libraries(${CDSSTRESS_SPSC_QUEUE} ${CDS_TEST_LIBRARIES} ${CDSSTRESS_FRAMEWORK_LIBRARY})
-#add_test(NAME ${CDSSTRESS_SPSC_QUEUE} COMMAND ${CDSSTRESS_SPSC_QUEUE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
+add_executable(${CDSSTRESS_SPSC_QUEUE} ${CDSSTRESS_SPSC_QUEUE_SOURCES})
+target_link_libraries(${CDSSTRESS_SPSC_QUEUE} ${CDS_TEST_LIBRARIES} ${CDSSTRESS_FRAMEWORK_LIBRARY})
+add_test(NAME ${CDSSTRESS_SPSC_QUEUE} COMMAND ${CDSSTRESS_SPSC_QUEUE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 
 # stress-queue
index bc04b78..4fa440a 100644 (file)
@@ -200,13 +200,13 @@ namespace {
         }
     };
 
-    CDSSTRESS_MSQueue( spsc_queue )
-    CDSSTRESS_MoirQueue( spsc_queue )
-    CDSSTRESS_BasketQueue( spsc_queue )
-    CDSSTRESS_OptimsticQueue( spsc_queue )
+    //CDSSTRESS_MSQueue( spsc_queue )
+    //CDSSTRESS_MoirQueue( spsc_queue )
+    //CDSSTRESS_BasketQueue( spsc_queue )
+    //CDSSTRESS_OptimsticQueue( spsc_queue )
     //CDSSTRESS_FCQueue( spsc_queue )
     //CDSSTRESS_FCDeque( spsc_queue )
-    CDSSTRESS_RWQueue( spsc_queue )
+    //CDSSTRESS_RWQueue( spsc_queue )
     //CDSSTRESS_StdQueue( spsc_queue )
 
 #undef CDSSTRESS_Queue_F