run-rc_cmdlength.c [plain text]
#define RUN_TEST(TestFunc, TestLineNum) \
{ \
Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \
if (TEST_PROTECT()) \
{ \
setUp(); \
TestFunc(); \
} \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \
tearDown(); \
} \
UnityConcludeTest(); \
}
#include "unity.h"
#include <setjmp.h>
#include <stdio.h>
#include "config.h"
#include "ntp.h"
#include "ntp_calendar.h"
#include "ntp_stdlib.h"
#include "rc_cmdlength.h"
#include "test-libntp.h"
#include <string.h>
extern void setUp(void);
extern void tearDown(void);
extern void test_EvaluateCommandLength(void);
void resetTest(void);
void resetTest(void)
{
tearDown();
setUp();
}
char const *progname;
int main(int argc, char *argv[])
{
progname = argv[0];
UnityBegin("rc_cmdlength.c");
RUN_TEST(test_EvaluateCommandLength, 16);
return (UnityEnd());
}