From: Peizhao Ou Date: Fri, 9 Feb 2018 23:45:07 +0000 (-0800) Subject: Adds util header for testing X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=commitdiff_plain;h=b769cf24a3c1cb9c5d930ad31c9c3f97d225ae6c Adds util header for testing --- diff --git a/test/include/cds_test/stress_test_util.h b/test/include/cds_test/stress_test_util.h new file mode 100644 index 00000000..fe9d7b4f --- /dev/null +++ b/test/include/cds_test/stress_test_util.h @@ -0,0 +1,32 @@ +#ifndef _CDS_STRESS_TEST_UTIL_H +#define _CDS_STRESS_TEST_UTIL_H + +#include +#include + +typedef unsigned long long ullong; + +#define GetConfig(field) s_n##field = cfg.get_size_t(#field, s_n##field) + +#define GetConfigExpected(field, expected) \ + s_n##field = cfg.get_size_t(#field, s_n##field); \ + if (s_n##field < (expected)) { \ + s_n##field = expected; \ + } + +#define PrintConfig(field) \ + std::cout << #field << "=" << s_n##field << std::endl + +#define GetConfigNonZeroExpected(field, expected) \ + s_n##field = cfg.get_size_t(#field, s_n##field); \ + if (s_n##field == 0) { \ + s_n##field = expected; \ + } + +#ifdef PERFORMANCE +#define DEBUG(stmt) +#else +#define DEBUG(stmt) stmt +#endif + +#endif diff --git a/test/stress/sequential/sequential-map/insdelfind/.CMakeLists.txt.swp b/test/stress/sequential/sequential-map/insdelfind/.CMakeLists.txt.swp deleted file mode 100644 index eb835773..00000000 Binary files a/test/stress/sequential/sequential-map/insdelfind/.CMakeLists.txt.swp and /dev/null differ