BUILT_SOURCES =
CLEANFILES =
-std_unity_list = \
- ../../sntp/unity/auto/generate_test_runner.rb \
+std_unity_list = \
+ $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
$(NULL)
run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
$(NULL)
$(srcdir)/run-bug-2803.c: $(srcdir)/ut-2803.c $(std_unity_list)
- $(run_unity) ut-2803.c run-ut-2803.c
+ $(run_unity) ut-2803.c run-bug-2803.c
# HMS: we may not need some of these:
#noinst_HEADERS = ntpdtest.h \
//=======External Functions This Runner Calls=====
extern void setUp(void);
extern void tearDown(void);
+extern void test_main(void);
//=======Test Reset Option=====
//=======MAIN=====
int main(void)
{
- Unity.TestFile = "bug-2803.c";
- UnityBegin("");
+ Unity.TestFile = "ut-2803.c";
+ UnityBegin("ut-2803.c");
+ RUN_TEST(test_main, 27);
return (UnityEnd());
}
#include "bug-2803.h"
#include "unity.h"
-#define VERSION 3 //change this to 5 and the test wont fail.
-
void setUp(void)
{
return 0;
}
*/
-int test_main( void )
+void test_main( void )
{
TEST_ASSERT_EQUAL(0, main2());
}
-
-void test_custom(void)
-{
- if(VERSION < 4 ){
- TEST_FAIL_MESSAGE("expected to fail");
- }
-
- else TEST_ASSERT_EQUAL(1,1);
-}