separate unittest folder
This commit is contained in:
17
unittests/CatchDefinitions.cpp
Normal file
17
unittests/CatchDefinitions.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "CatchDefinitions.h"
|
||||
|
||||
#include <fsfw/objectmanager/ObjectManager.h>
|
||||
#include <fsfw/serviceinterface/ServiceInterface.h>
|
||||
|
||||
StorageManagerIF* tglob::getIpcStoreHandle() {
|
||||
if (ObjectManager::instance() != nullptr) {
|
||||
return ObjectManager::instance()->get<StorageManagerIF>(objects::IPC_STORE);
|
||||
} else {
|
||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||
sif::error << "Global object manager uninitialized" << std::endl;
|
||||
#else
|
||||
sif::printError("Global object manager uninitialized\n\r");
|
||||
#endif /* FSFW_CPP_OSTREAM_ENABLED == 1 */
|
||||
return nullptr;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user