Changeset View
Changeset View
Standalone View
Standalone View
src/test/settings_tests.cpp
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Lines | if (out_file) { | ||||
throw std::system_error(errno, std::generic_category(), | throw std::system_error(errno, std::generic_category(), | ||||
"fclose failed"); | "fclose failed"); | ||||
} | } | ||||
out_file = nullptr; | out_file = nullptr; | ||||
} | } | ||||
uint8_t out_sha_bytes[CSHA256::OUTPUT_SIZE]; | uint8_t out_sha_bytes[CSHA256::OUTPUT_SIZE]; | ||||
out_sha.Finalize(out_sha_bytes); | out_sha.Finalize(out_sha_bytes); | ||||
std::string out_sha_hex = | std::string out_sha_hex = HexStr(out_sha_bytes); | ||||
HexStr(std::begin(out_sha_bytes), std::end(out_sha_bytes)); | |||||
// If check below fails, should manually dump the results with: | // If check below fails, should manually dump the results with: | ||||
// | // | ||||
// SETTINGS_MERGE_TEST_OUT=results.txt ./test_bitcoin | // SETTINGS_MERGE_TEST_OUT=results.txt ./test_bitcoin | ||||
// --run_test=settings_tests/Merge | // --run_test=settings_tests/Merge | ||||
// | // | ||||
// And verify diff against previous results to make sure the changes are | // And verify diff against previous results to make sure the changes are | ||||
// expected. | // expected. | ||||
Show All 11 Lines |