summaryrefslogtreecommitdiff
path: root/tests/libntp/run-numtoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libntp/run-numtoa.c')
-rw-r--r--tests/libntp/run-numtoa.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/libntp/run-numtoa.c b/tests/libntp/run-numtoa.c
index f3368a7210fa..8b0ab7971402 100644
--- a/tests/libntp/run-numtoa.c
+++ b/tests/libntp/run-numtoa.c
@@ -33,6 +33,13 @@ extern void test_Address(void);
extern void test_Netmask(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("numtoa.c");
RUN_TEST(test_Address, 9);
RUN_TEST(test_Netmask, 10);