mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Merge #13767: Remove redundant assignments (dead stores)
dd777f3e12Remove unused variable (practicalswift)cdf4089457Remove redundant assignments (dead stores) (practicalswift) Pull request description: Remove redundant assignments (dead stores). Tree-SHA512: e852059b22a161c34a0f18a6a6ed798e2b35e6d2b9f23c526af0ec33e01f6a5bb1fa5ada6671ba183d7b02393ff0d397be5aa4b4e2edbd5e604c9a76ac48d249
This commit is contained in:
@@ -937,17 +937,19 @@ BOOST_AUTO_TEST_CASE(script_build)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef UPDATE_JSON_TESTS
|
||||
std::string strGen;
|
||||
|
||||
#endif
|
||||
for (TestBuilder& test : tests) {
|
||||
test.Test();
|
||||
std::string str = JSONPrettyPrint(test.GetJSON());
|
||||
#ifndef UPDATE_JSON_TESTS
|
||||
#ifdef UPDATE_JSON_TESTS
|
||||
strGen += str + ",\n";
|
||||
#else
|
||||
if (tests_set.count(str) == 0) {
|
||||
BOOST_CHECK_MESSAGE(false, "Missing auto script_valid test: " + test.GetComment());
|
||||
}
|
||||
#endif
|
||||
strGen += str + ",\n";
|
||||
}
|
||||
|
||||
#ifdef UPDATE_JSON_TESTS
|
||||
|
||||
Reference in New Issue
Block a user