aboutsummaryrefslogtreecommitdiff
path: root/tests/ntpd/run-rc_cmdlength.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ntpd/run-rc_cmdlength.c')
-rw-r--r--tests/ntpd/run-rc_cmdlength.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/ntpd/run-rc_cmdlength.c b/tests/ntpd/run-rc_cmdlength.c
index 927a45e73a4a..e5121cd1d609 100644
--- a/tests/ntpd/run-rc_cmdlength.c
+++ b/tests/ntpd/run-rc_cmdlength.c
@@ -36,6 +36,13 @@ extern void tearDown(void);
extern void test_EvaluateCommandLength(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)
@@ -51,8 +58,9 @@ char const *progname;
int main(int argc, char *argv[])
{
progname = argv[0];
+ suite_setup();
UnityBegin("rc_cmdlength.c");
- RUN_TEST(test_EvaluateCommandLength, 16);
+ RUN_TEST(test_EvaluateCommandLength, 14);
return (UnityEnd());
}