mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 02:55:06 -05:00
test: enable unit tests to suspend logging
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user