Bump FSFW #31

Merged
muellerr merged 139 commits from bump-fsfw into develop 2023-12-18 13:16:28 +01:00
Showing only changes of commit f49e607881 - Show all commits

View File

@ -60,6 +60,12 @@ TEST_CASE("Reserved Message Parser", "[cfdp]") {
CHECK(putRequest.getDestId().getWidth() == entityId.getWidth()); CHECK(putRequest.getDestId().getWidth() == entityId.getWidth());
size_t sourceNameSize = 0; size_t sourceNameSize = 0;
auto& sourceNameLv = putRequest.getSourceName(); auto& sourceNameLv = putRequest.getSourceName();
sourceNameLv.getString(sourceNameSize); const char* sourceString = sourceNameLv.getString(sourceNameSize);
CHECK(sourceNameSize == srcFileName.size()); CHECK(sourceNameSize == srcFileName.size());
CHECK(std::strncmp(sourceString, srcFileName.c_str(), sourceNameSize) == 0);
size_t destNameSize = 0;
auto& destNameLv = putRequest.getDestName();
const char* destString = destNameLv.getString(destNameSize);
CHECK(destNameSize == destFileName.size());
CHECK(std::strncmp(destString, destFileName.c_str(), destNameSize) == 0);
} }