diff options
Diffstat (limited to 'tests/libntp/run-msyslog.c')
-rw-r--r-- | tests/libntp/run-msyslog.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/libntp/run-msyslog.c b/tests/libntp/run-msyslog.c index ff264f833fc81..0ebeb4562a60e 100644 --- a/tests/libntp/run-msyslog.c +++ b/tests/libntp/run-msyslog.c @@ -38,6 +38,13 @@ extern void test_msnprintfNullTarget(void); extern void test_msnprintfTruncate(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) @@ -53,6 +60,7 @@ char const *progname; int main(int argc, char *argv[]) { progname = argv[0]; + suite_setup(); UnityBegin("msyslog.c"); RUN_TEST(test_msnprintf, 14); RUN_TEST(test_msnprintfLiteralPercentm, 15); |