Changeset View
Changeset View
Standalone View
Standalone View
src/test/util_tests.cpp
Show First 20 Lines • Show All 1,171 Lines • ▼ Show 20 Lines | ForEachMergeSetup([&](const ActionList &arg_actions, | ||||
for (const auto &arg : ignored) { | for (const auto &arg : ignored) { | ||||
desc += " "; | desc += " "; | ||||
desc += arg; | desc += arg; | ||||
} | } | ||||
} | } | ||||
desc += "\n"; | desc += "\n"; | ||||
out_sha.Write((const uint8_t *)desc.data(), desc.size()); | out_sha.Write(MakeUCharSpan(desc)); | ||||
if (out_file) { | if (out_file) { | ||||
BOOST_REQUIRE(fwrite(desc.data(), 1, desc.size(), out_file) == | BOOST_REQUIRE(fwrite(desc.data(), 1, desc.size(), out_file) == | ||||
desc.size()); | desc.size()); | ||||
} | } | ||||
}); | }); | ||||
if (out_file) { | if (out_file) { | ||||
if (fclose(out_file)) { | if (fclose(out_file)) { | ||||
▲ Show 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | ForEachMergeSetup([&](const ActionList &arg_actions, | ||||
try { | try { | ||||
desc += parser.GetChainName(); | desc += parser.GetChainName(); | ||||
} catch (const std::runtime_error &e) { | } catch (const std::runtime_error &e) { | ||||
desc += "error: "; | desc += "error: "; | ||||
desc += e.what(); | desc += e.what(); | ||||
} | } | ||||
desc += "\n"; | desc += "\n"; | ||||
out_sha.Write((const uint8_t *)desc.data(), desc.size()); | out_sha.Write(MakeUCharSpan(desc)); | ||||
if (out_file) { | if (out_file) { | ||||
BOOST_REQUIRE(fwrite(desc.data(), 1, desc.size(), out_file) == | BOOST_REQUIRE(fwrite(desc.data(), 1, desc.size(), out_file) == | ||||
desc.size()); | desc.size()); | ||||
} | } | ||||
}); | }); | ||||
if (out_file) { | if (out_file) { | ||||
if (fclose(out_file)) { | if (fclose(out_file)) { | ||||
▲ Show 20 Lines • Show All 1,198 Lines • Show Last 20 Lines |