diff options
Diffstat (limited to 'sntp/tests/run-t-log.c')
-rw-r--r-- | sntp/tests/run-t-log.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sntp/tests/run-t-log.c b/sntp/tests/run-t-log.c index 8d1234570f68..3532c4e0ed66 100644 --- a/sntp/tests/run-t-log.c +++ b/sntp/tests/run-t-log.c @@ -33,6 +33,13 @@ extern void testOpenLogfileTest(void); extern void testWriteInCustomLogfile(void); +//=======Suite Setup===== +static void suite_setup(void) +{ +extern int change_logfile(const char*, int); +change_logfile("stderr", 0); +} + //=======Test Reset Option===== void resetTest(void); void resetTest(void) @@ -48,6 +55,7 @@ char const *progname; int main(int argc, char *argv[]) { progname = argv[0]; + suite_setup(); UnityBegin("t-log.c"); RUN_TEST(testChangePrognameInMysyslog, 10); RUN_TEST(testOpenLogfileTest, 11); |