1
0
Fork 0
forked from lthn/blockchain

coretests: minor fix for counting unique tests

This commit is contained in:
sowle 2023-06-04 20:50:31 +02:00
parent ed9741e3cd
commit 6cab1f2e9a
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -390,6 +390,7 @@ bool gen_and_play_intermitted_by_blockchain_saveload(const char* const genclass_
{ \
TIME_MEASURE_START_MS(t); \
++tests_count; \
++unique_tests_count; \
if (!generate_and_play<genclass>(#genclass)) \
{ \
failed_tests.insert(#genclass); \
@ -407,6 +408,7 @@ bool gen_and_play_intermitted_by_blockchain_saveload(const char* const genclass_
const char* testname = #genclass " (BC saveload)"; \
TIME_MEASURE_START_MS(t); \
++tests_count; \
++unique_tests_count; \
if (!gen_and_play_intermitted_by_blockchain_saveload<genclass>(testname)) \
{ \
failed_tests.insert(testname); \
@ -418,8 +420,6 @@ bool gen_and_play_intermitted_by_blockchain_saveload(const char* const genclass_
tests_running_time.push_back(std::make_pair(testname, t)); \
}
#define GENERATE_AND_PLAY_HF(genclass, hardfork_str_mask) \
if((!postponed_tests.count(#genclass) && run_single_test.empty()) || (!run_single_test.empty() && std::string::npos != std::string(#genclass).find(run_single_test))) \
{ \