fixed impact of windows fixes on other builds
This commit is contained in:
parent
81c5b2ec95
commit
70fd9ff3e5
@ -50,6 +50,6 @@ void TaskFactory::printMissedDeadline() {
|
||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||
sif::warning << "TaskFactory::printMissedDeadline: " << name << std::endl;
|
||||
#else
|
||||
sif::printWarning("TaskFactory::printMissedDeadline: %s\n", name);
|
||||
sif::printWarning("TaskFactory::printMissedDeadline: %s\n", name.c_str());
|
||||
#endif /* FSFW_CPP_OSTREAM_ENABLED == 1 */
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ void CommandExecutor::printLastError(std::string funcName) const {
|
||||
sif::warning << funcName << " pclose failed with code " << lastError << ": "
|
||||
<< strerror(lastError) << std::endl;
|
||||
#else
|
||||
sif::printError("%s pclose failed with code %d: %s\n", funcName, lastError,
|
||||
sif::printError("%s pclose failed with code %d: %s\n", funcName.c_str(), lastError,
|
||||
strerror(lastError));
|
||||
#endif
|
||||
}
|
||||
@ -119,7 +119,7 @@ ReturnValue_t CommandExecutor::check(bool& replyReceived) {
|
||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||
sif::info << currentCmd << " | " << readVec.data();
|
||||
#else
|
||||
sif::printInfo("%s | %s", currentCmd, readVec.data());
|
||||
sif::printInfo("%s | %s", currentCmd.c_str(), readVec.data());
|
||||
#endif
|
||||
}
|
||||
if (ringBuffer != nullptr) {
|
||||
@ -188,7 +188,7 @@ ReturnValue_t CommandExecutor::executeBlocking() {
|
||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||
sif::info << currentCmd << " | " << output;
|
||||
#else
|
||||
sif::printInfo("%s | %s", currentCmd, output);
|
||||
sif::printInfo("%s | %s", currentCmd.c_str(), output.c_str());
|
||||
#endif
|
||||
}
|
||||
if (ringBuffer != nullptr) {
|
||||
|
@ -108,7 +108,7 @@ TEST_CASE("DataSetTest", "[DataSetTest]") {
|
||||
CHECK(maxSize == sizeof(uint8_t) + sizeof(float) + sizeof(uint16_t) * 3);
|
||||
serSize = 0;
|
||||
/* Already reserve additional space for validity buffer, will be needed later */
|
||||
std::vector<uint8_t> buffer(maxSize);
|
||||
std::vector<uint8_t> buffer(maxSize+1);
|
||||
uint8_t* buffPtr = buffer.data();
|
||||
CHECK(localSet.serialize(&buffPtr, &serSize, maxSize, SerializeIF::Endianness::MACHINE) ==
|
||||
returnvalue::OK);
|
||||
@ -157,7 +157,7 @@ TEST_CASE("DataSetTest", "[DataSetTest]") {
|
||||
CHECK(maxSize == sizeof(uint8_t) + sizeof(uint16_t) * 3 + sizeof(float) + 1);
|
||||
serSize = 0;
|
||||
buffPtr = buffer.data();
|
||||
CHECK(localSet.serialize(&buffPtr, &serSize, maxSize, SerializeIF::Endianness::MACHINE) ==
|
||||
CHECK(localSet.serialize(&buffPtr, &serSize, buffer.size(), SerializeIF::Endianness::MACHINE) ==
|
||||
returnvalue::OK);
|
||||
CHECK(rawUint8 == 232);
|
||||
std::memcpy(&rawFloat, buffer.data() + sizeof(uint8_t), sizeof(float));
|
||||
|
@ -419,7 +419,7 @@ TEST_CASE("Local Pool Manager Tests", "[LocManTest]") {
|
||||
CHECK(poolOwner.changedVariableCallbackWasCalled(gpidToCheck, storeId) == true);
|
||||
CHECK(gpidToCheck == lpool::uint8VarGpid);
|
||||
|
||||
poolOwner.poolManager.printPoolEntry(lpool::uint8VarId);
|
||||
//poolOwner.poolManager.printPoolEntry(lpool::uint8VarId);
|
||||
}
|
||||
|
||||
/* we need to reset the subscription list because the pool owner
|
||||
|
@ -9,9 +9,9 @@ TEST_CASE("Filesystem Mock", "[mocks]") {
|
||||
auto fsMock = FilesystemMock();
|
||||
|
||||
SECTION("Create File") {
|
||||
FilesystemParams params(L"hello.txt");
|
||||
FilesystemParams params("hello.txt");
|
||||
CHECK(fsMock.createFile(params) == returnvalue::OK);
|
||||
auto iter = fsMock.fileMap.find(L"hello.txt");
|
||||
auto iter = fsMock.fileMap.find("hello.txt");
|
||||
REQUIRE(iter != fsMock.fileMap.end());
|
||||
FilesystemMock::FileInfo &stats = iter->second;
|
||||
CHECK(stats.fileSegQueue.empty());
|
||||
@ -20,10 +20,10 @@ TEST_CASE("Filesystem Mock", "[mocks]") {
|
||||
|
||||
SECTION("Write to File") {
|
||||
std::string testData = "test data";
|
||||
FileOpParams params(L"hello.txt", testData.size());
|
||||
FileOpParams params("hello.txt", testData.size());
|
||||
CHECK(fsMock.writeToFile(params, reinterpret_cast<const uint8_t *>(testData.data())) ==
|
||||
returnvalue::OK);
|
||||
auto iter = fsMock.fileMap.find(L"hello.txt");
|
||||
auto iter = fsMock.fileMap.find("hello.txt");
|
||||
REQUIRE(iter != fsMock.fileMap.end());
|
||||
FilesystemMock::FileInfo &stats = iter->second;
|
||||
CHECK(not stats.fileSegQueue.empty());
|
||||
@ -37,10 +37,10 @@ TEST_CASE("Filesystem Mock", "[mocks]") {
|
||||
}
|
||||
|
||||
SECTION("Create Directory") {
|
||||
FilesystemParams params(L"hello");
|
||||
FilesystemParams params("hello");
|
||||
CHECK(fsMock.createDirectory(params) == returnvalue::OK);
|
||||
REQUIRE(not fsMock.dirMap.empty());
|
||||
auto iter = fsMock.dirMap.find(L"hello");
|
||||
auto iter = fsMock.dirMap.find("hello");
|
||||
REQUIRE(iter != fsMock.dirMap.end());
|
||||
auto &dirInfo = iter->second;
|
||||
CHECK(dirInfo.createCallCount == 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user