• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revision414ed256d7bbaeaedbf90d053b851c0ca3b55bc9 (tree)
Zeit2018-10-10 12:35:50
AutorSergey Gusarov
CommiterSergey Gusarov

Log Message

64 bit unity test failed on ms vc++. Attempt to enable them only when it's appropriate

Ändern Zusammenfassung

Diff

diff -r a27e2cde42e9 -r 414ed256d7bb tests/src/std/test_math.c
--- a/tests/src/std/test_math.c Wed Oct 10 06:17:33 2018 +0300
+++ b/tests/src/std/test_math.c Wed Oct 10 06:35:50 2018 +0300
@@ -65,8 +65,10 @@
6565 TEST_ASSERT_EQUAL_INT32(roundf32(1.5f), 2);
6666 TEST_ASSERT_EQUAL_UINT32(uroundf32(1.5f), 2U);
6767
68+#if defined(UNITY_INCLUDE_64) || defined(UNITY_LONG_WIDTH == 64)
6869 TEST_ASSERT_EQUAL_INT64(roundf64(1.5f), 2);
6970 TEST_ASSERT_EQUAL_UINT64(uroundf64(1.5f), 2U);
71+#endif
7072
7173
7274 TEST_ASSERT_EQUAL_INT8(round8(1.5), 2);
@@ -78,6 +80,8 @@
7880 TEST_ASSERT_EQUAL_INT32(round32(1.5), 2);
7981 TEST_ASSERT_EQUAL_UINT32(uround32(1.5), 2U);
8082
83+#if defined(UNITY_INCLUDE_64) || defined(UNITY_LONG_WIDTH == 64)
8184 TEST_ASSERT_EQUAL_INT64(round64(1.5), 2);
8285 TEST_ASSERT_EQUAL_UINT64(uround64(1.5), 2U);
86+#endif
8387 }
diff -r a27e2cde42e9 -r 414ed256d7bb tests/src/test_simple_round.c
--- a/tests/src/test_simple_round.c Wed Oct 10 06:17:33 2018 +0300
+++ b/tests/src/test_simple_round.c Wed Oct 10 06:35:50 2018 +0300
@@ -41,8 +41,10 @@
4141 TEST_ASSERT_EQUAL_INT32(CT_SIMPLE_ROUNDF32(1.5f), 2);
4242 TEST_ASSERT_EQUAL_UINT32(CT_SIMPLE_UROUNDF32(1.5f), 2U);
4343
44+#if defined(UNITY_INCLUDE_64) || defined(UNITY_LONG_WIDTH == 64)
4445 TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_ROUNDF64(1.5f), 2);
4546 TEST_ASSERT_EQUAL_UINT64(CT_SIMPLE_UROUNDF64(1.5f), 2U);
47+#endif
4648
4749
4850 TEST_ASSERT_EQUAL_INT8(CT_SIMPLE_ROUND8(1.5), 2);
@@ -54,8 +56,10 @@
5456 TEST_ASSERT_EQUAL_INT32(CT_SIMPLE_ROUND32(1.5), 2);
5557 TEST_ASSERT_EQUAL_UINT32(CT_SIMPLE_UROUND32(1.5), 2U);
5658
59+#if defined(UNITY_INCLUDE_64) || defined(UNITY_LONG_WIDTH == 64)
5760 TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_ROUND64(1.5), 2);
5861 TEST_ASSERT_EQUAL_UINT64(CT_SIMPLE_UROUND64(1.5), 2U);
62+#endif
5963 }
6064
6165 void testAdditional(void)
Show on old repository browser