test: enable unit tests to suspend logging

This commit is contained in:
Miroslav Lichvar
2018-08-28 14:20:40 +02:00
parent eb8c9ad601
commit e034a07be8
3 changed files with 16 additions and 4 deletions

View File

@@ -75,6 +75,16 @@ main(int argc, char **argv)
return 0;
}
void TST_SuspendLogging(void)
{
LOG_OpenFileLog("/dev/null");
}
void TST_ResumeLogging(void)
{
LOG_OpenFileLog(NULL);
}
double
TST_GetRandomDouble(double min, double max)
{