aboutsummaryrefslogtreecommitdiff
path: root/tests/ntpq/run-t-ntpq.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ntpq/run-t-ntpq.c')
-rw-r--r--tests/ntpq/run-t-ntpq.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ntpq/run-t-ntpq.c b/tests/ntpq/run-t-ntpq.c
index ccf2a06c8882..baa1211c44c5 100644
--- a/tests/ntpq/run-t-ntpq.c
+++ b/tests/ntpq/run-t-ntpq.c
@@ -32,6 +32,13 @@ extern void tearDown(void);
extern void testPrimary(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)
@@ -47,6 +54,7 @@ char const *progname;
int main(int argc, char *argv[])
{
progname = argv[0];
+ suite_setup();
UnityBegin("t-ntpq.c");
RUN_TEST(testPrimary, 20);