]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
removed the outdated functions made purely for testing unity
authorDamir Tomic <viperus@ntp.org>
Fri, 12 Jun 2015 06:25:21 +0000 (06:25 +0000)
committerDamir Tomic <viperus@ntp.org>
Fri, 12 Jun 2015 06:25:21 +0000 (06:25 +0000)
bk: 557a7b51FDAUsLC1eWRce159j3ywCw

tests/bug-2803/Makefile.am
tests/bug-2803/run-bug-2803.c
tests/bug-2803/ut-2803.c

index aab24d80d79dc6c4f047e392d85a7ddf1128397d..5f49c29a5276c4fe4d98f55d8066f4ddfaf90083 100644 (file)
@@ -3,8 +3,8 @@ NULL =
 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
@@ -38,7 +38,7 @@ bug_2803_SOURCES =                    \
        $(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      \
index 7684a99d8298961205bd5ed63dbbfd29ec8b460e..7331598f12ce96a6636964beff62c10e9b11fd83 100644 (file)
@@ -26,6 +26,7 @@
 //=======External Functions This Runner Calls=====
 extern void setUp(void);
 extern void tearDown(void);
+extern void test_main(void);
 
 
 //=======Test Reset Option=====
@@ -39,8 +40,9 @@ void resetTest()
 //=======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());
 }
index 885cb452c452c047193a2fa9eabf4305dae8a209..c5462b1aac6dc0ce2c5af614ab9c038600e2dec7 100644 (file)
@@ -1,8 +1,6 @@
 #include "bug-2803.h"
 #include "unity.h"
 
-#define VERSION 3 //change this to 5 and the test wont fail.
-
 
 void setUp(void)
 {
@@ -26,16 +24,7 @@ int main( 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);
-}