2020-12-01 16:50:02 +01:00
|
|
|
#include "UnittDefinitions.h"
|
2020-10-20 17:11:23 +02:00
|
|
|
|
|
|
|
ReturnValue_t unitt::put_error(std::string errorId) {
|
2021-01-03 14:16:52 +01:00
|
|
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
2020-10-20 17:11:23 +02:00
|
|
|
sif::error << "Unit Tester error: Failed at test ID "
|
2021-01-06 19:49:58 +01:00
|
|
|
<< errorId << std::endl;
|
|
|
|
#else
|
2021-01-12 13:18:18 +01:00
|
|
|
sif::printError("Unit Tester error: Failed at test ID 0x%08x", errorId);
|
2021-01-06 19:49:58 +01:00
|
|
|
#endif /* FSFW_CPP_OSTREAM_ENABLED == 1 */
|
2020-10-20 17:11:23 +02:00
|
|
|
return HasReturnvaluesIF::RETURN_FAILED;
|
|
|
|
}
|