1
0
Fork 0
forked from lthn/blockchain

coretests: stop_on_first_fail

This commit is contained in:
sowle 2022-08-25 04:16:22 +02:00
parent e8ea28d085
commit 7cc2582cee
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -259,6 +259,8 @@ bool gen_and_play_intermitted_by_blockchain_saveload(const char* const genclass_
{ \
failed_tests.insert(#genclass); \
LOCAL_ASSERT(false); \
if (stop_on_first_fail) \
return 1; \
} \
TIME_MEASURE_FINISH_MS(t); \
tests_running_time.push_back(std::make_pair(#genclass, t)); \
@ -274,6 +276,8 @@ bool gen_and_play_intermitted_by_blockchain_saveload(const char* const genclass_
{ \
failed_tests.insert(testname); \
LOCAL_ASSERT(false); \
if (stop_on_first_fail) \
return 1; \
} \
TIME_MEASURE_FINISH_MS(t); \
tests_running_time.push_back(std::make_pair(testname, t)); \
@ -746,6 +750,8 @@ int main(int argc, char* argv[])
#undef MARK_TEST_AS_POSTPONED
bool stop_on_first_fail = false;
// TODO // GENERATE_AND_PLAY(wallet_spend_form_auditable_and_track);