Disable SPSC test cases for some queues
[libcds.git] / test / stress / freelist / put_get_single.cpp
index bfca817f7a09d82003a5dca58fc1bf6cc50512f5..d0ebddcdd1c81f625633040e17c546e75fc9420b 100644 (file)
@@ -1,7 +1,7 @@
 /*
     This file is a part of libcds - Concurrent Data Structures library
 
-    (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
+    (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
 
     Source code repo: http://github.com/khizmax/libcds/
     Download: http://sourceforge.net/projects/libcds/files/
@@ -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();