aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-02-22 19:34:09 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-02-22 19:34:09 +0000
commit5e3557d2c30f9f1a206d93441897793a993f3618 (patch)
treebf91ab81d379f9b4d6d8ad7db7feaa17fc63faf4 /tests
parentMerge pull request #681 (diff)
downloadmonero-5e3557d2c30f9f1a206d93441897793a993f3618.tar.xz
move g_test_dbg_lock_sleep from a global to a function level static
This avoids the need to define that variable in every program which uses epee.
Diffstat (limited to 'tests')
-rw-r--r--tests/core_proxy/core_proxy.cpp2
-rw-r--r--tests/core_tests/chaingen_main.cpp2
-rw-r--r--tests/functional_tests/main.cpp2
-rw-r--r--tests/net_load_tests/clt.cpp2
-rw-r--r--tests/net_load_tests/srv.cpp2
-rw-r--r--tests/performance_tests/main.cpp2
-rw-r--r--tests/unit_tests/main.cpp2
7 files changed, 0 insertions, 14 deletions
diff --git a/tests/core_proxy/core_proxy.cpp b/tests/core_proxy/core_proxy.cpp
index 14a12e139..256faeccb 100644
--- a/tests/core_proxy/core_proxy.cpp
+++ b/tests/core_proxy/core_proxy.cpp
@@ -62,8 +62,6 @@ using namespace crypto;
BOOST_CLASS_VERSION(nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<tests::proxy_core> >, 1);
-unsigned int epee::g_test_dbg_lock_sleep = 0;
-
int main(int argc, char* argv[])
{
diff --git a/tests/core_tests/chaingen_main.cpp b/tests/core_tests/chaingen_main.cpp
index 40bce1e4e..9f8a57821 100644
--- a/tests/core_tests/chaingen_main.cpp
+++ b/tests/core_tests/chaingen_main.cpp
@@ -44,8 +44,6 @@ namespace
const command_line::arg_descriptor<bool> arg_test_transactions = {"test_transactions", ""};
}
-unsigned int epee::g_test_dbg_lock_sleep = 0;
-
int main(int argc, char* argv[])
{
TRY_ENTRY();
diff --git a/tests/functional_tests/main.cpp b/tests/functional_tests/main.cpp
index 0233c50b5..58a2a5c90 100644
--- a/tests/functional_tests/main.cpp
+++ b/tests/functional_tests/main.cpp
@@ -55,8 +55,6 @@ namespace
const command_line::arg_descriptor<size_t> arg_test_repeat_count = {"test_repeat_count", "", 1};
}
-unsigned int epee::g_test_dbg_lock_sleep = 0;
-
int main(int argc, char* argv[])
{
TRY_ENTRY();
diff --git a/tests/net_load_tests/clt.cpp b/tests/net_load_tests/clt.cpp
index e6b5c0414..56089a4da 100644
--- a/tests/net_load_tests/clt.cpp
+++ b/tests/net_load_tests/clt.cpp
@@ -628,8 +628,6 @@ TEST_F(net_load_test_clt, permament_open_and_close_and_connections_closed_by_ser
ASSERT_EQ(RESERVED_CONN_CNT, m_tcp_server.get_config_object().get_connections_count());
}
-unsigned int epee::g_test_dbg_lock_sleep = 0;
-
int main(int argc, char** argv)
{
epee::debug::get_set_enable_assert(true, false);
diff --git a/tests/net_load_tests/srv.cpp b/tests/net_load_tests/srv.cpp
index 5a737e616..d8d3eae2e 100644
--- a/tests/net_load_tests/srv.cpp
+++ b/tests/net_load_tests/srv.cpp
@@ -213,8 +213,6 @@ namespace
};
}
-unsigned int epee::g_test_dbg_lock_sleep = 0;
-
int main(int argc, char** argv)
{
//set up logging options
diff --git a/tests/performance_tests/main.cpp b/tests/performance_tests/main.cpp
index 2e390fabc..84a51aa96 100644
--- a/tests/performance_tests/main.cpp
+++ b/tests/performance_tests/main.cpp
@@ -42,8 +42,6 @@
#include "generate_key_image_helper.h"
#include "is_out_to_acc.h"
-unsigned int epee::g_test_dbg_lock_sleep = 0;
-
int main(int argc, char** argv)
{
set_process_affinity(1);
diff --git a/tests/unit_tests/main.cpp b/tests/unit_tests/main.cpp
index b96129a3a..faaf9475a 100644
--- a/tests/unit_tests/main.cpp
+++ b/tests/unit_tests/main.cpp
@@ -32,8 +32,6 @@
#include "include_base_utils.h"
-unsigned int epee::g_test_dbg_lock_sleep = 0;
-
int main(int argc, char** argv)
{
epee::debug::get_set_enable_assert(true, false);