Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update misc_tests to run in both Legacy and Savanna #184

Merged
merged 2 commits into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions unittests/misc_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ struct permission_visitor {

};

BOOST_AUTO_TEST_CASE(authority_checker)
BOOST_AUTO_TEST_CASE_TEMPLATE( authority_checker, T, validating_testers )
{ try {
testing::validating_tester test;
T test;
auto a = test.get_public_key(name("a"), "active");
auto b = test.get_public_key(name("b"), "active");
auto c = test.get_public_key(name("c"), "active");
Expand Down Expand Up @@ -716,9 +716,9 @@ BOOST_AUTO_TEST_CASE(alphabetic_sort)
} FC_LOG_AND_RETHROW() }


BOOST_AUTO_TEST_CASE(transaction_test) { try {
BOOST_AUTO_TEST_CASE_TEMPLATE( transaction_test, T, validating_testers ) { try {

testing::validating_tester test;
T test;
signed_transaction trx;

fc::variant pretty_trx = fc::mutable_variant_object()
Expand Down Expand Up @@ -881,9 +881,9 @@ BOOST_AUTO_TEST_CASE(signed_int_test) { try {

} FC_LOG_AND_RETHROW() }

BOOST_AUTO_TEST_CASE(transaction_metadata_test) { try {
BOOST_AUTO_TEST_CASE_TEMPLATE( transaction_metadata_test, T, validating_testers ) { try {

testing::validating_tester test;
T test;
signed_transaction trx;

fc::variant pretty_trx = fc::mutable_variant_object()
Expand Down Expand Up @@ -1219,8 +1219,8 @@ BOOST_AUTO_TEST_CASE(stable_priority_queue_test) {
#endif
#endif
#ifndef __SANITIZE_ADDRESS__
BOOST_AUTO_TEST_CASE(bad_alloc_test) {
tester t; // force a controller to be constructed and set the new_handler
BOOST_AUTO_TEST_CASE_TEMPLATE( bad_alloc_test, T, testers ) {
T t; // force a controller to be constructed and set the new_handler
int* ptr = nullptr;
const auto fail = [&]() {
ptr = new int[std::numeric_limits<int64_t>::max()/16];
Expand Down
Loading