move strcmp outside of macro
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details

This commit is contained in:
Robin Müller 2022-02-01 14:04:13 +01:00
parent d2b561ba2f
commit 368481f88b
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ TEST_CASE( "Command Executor" , "[cmd-exec]") {
uint8_t readBuffer[32];
REQUIRE(outputBuffer.readData(readBuffer, 12) == HasReturnvaluesIF::RETURN_OK);
std::string cmpString = "Hello World\n";
CHECK(strcmp(reinterpret_cast<char*>(readBuffer), cmpString.c_str()) == 0);
int cmpResult = strcmp(reinterpret_cast<char*>(readBuffer), cmpString.c_str());
CHECK(cmpResult == 0);
outputBuffer.deleteData(12, true);
// Test more complex command
result = cmdExecutor.load("ping -c 1 localhost", false, false);