forked from lthn/blockchain
coretests: stop_on_first_fail
This commit is contained in:
parent
e8ea28d085
commit
7cc2582cee
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue