adding securities

This commit is contained in:
2024-12-09 16:30:55 +01:00
parent 288015d355
commit e23ddd6cd1
9 changed files with 103 additions and 4 deletions

View File

@@ -2,11 +2,13 @@
#include <unity/unity.h>
bool errors_enabled = true;
bool has_recieved_error = false;
void DebugCallBack(PulseDebugMessageSeverity severity, const char* message)
{
if(errors_enabled && severity == PULSE_DEBUG_MESSAGE_SEVERITY_ERROR)
TEST_FAIL_MESSAGE(message);
has_recieved_error = true;
}
#define LOG_MESSAGE_MAX_LENGTH 4096