Commit Graph

  • 10146392c8 Merge pull request #154 from jsalling/bugfix/AssertNumbersWithin-overflow Mark VanderVoord 2016-01-07 20:45:35 -05:00
  • dbb2ac453a Merge pull request #154 from jsalling/bugfix/AssertNumbersWithin-overflow Mark VanderVoord 2016-01-07 20:45:35 -05:00
  • 33325f4a0b More fixes to line endings Mark VanderVoord 2016-01-07 14:20:59 -05:00
  • b8f5d68b0d More fixes to line endings Mark VanderVoord 2016-01-07 14:20:59 -05:00
  • d1111d92af Merge pull request #152 from jsalling/feature/fixture-ignore-tests-require-spy Mark VanderVoord 2016-01-07 07:56:47 -05:00
  • eab77d4d7c Merge pull request #152 from jsalling/feature/fixture-ignore-tests-require-spy Mark VanderVoord 2016-01-07 07:56:47 -05:00
  • 716f88caca Merge pull request #153 from jsalling/refactor/trailing-whitespace Mark VanderVoord 2016-01-06 20:41:34 -05:00
  • 4b8f801243 Merge pull request #153 from jsalling/refactor/trailing-whitespace Mark VanderVoord 2016-01-06 20:41:34 -05:00
  • 4108319007 Fix for overflow issue in UnityAssertNumbersWithin() Make subtraction result unsigned, change prototype & casts in internals. If "actual - expected" overflowed, it wrapped to a negative number, but would fit in an unsigned type, example is INT_MAX - (-1) = INT_MIN For correctness, 'delta' should be unsigned too. Passing in a negative number always passed. The delta can be between INT_MAX & UINT_MAX. jsalling 2015-12-20 11:42:43 -06:00
  • 14442d61f1 Fix for overflow issue in UnityAssertNumbersWithin() Make subtraction result unsigned, change prototype & casts in internals. If "actual - expected" overflowed, it wrapped to a negative number, but would fit in an unsigned type, example is INT_MAX - (-1) = INT_MIN For correctness, 'delta' should be unsigned too. Passing in a negative number always passed. The delta can be between INT_MAX & UINT_MAX. jsalling 2015-12-20 11:42:43 -06:00
  • 8ca3062ad4 Adding tests for overflow when calling UnityAssertNumbersWithin() 32 or 64 bit test will fail if compiled with -m32 or -m64, repectively on clang or gcc Fixes to the failures will follow jsalling 2015-12-16 00:04:17 -06:00
  • 4fe88256fd Adding tests for overflow when calling UnityAssertNumbersWithin() 32 or 64 bit test will fail if compiled with -m32 or -m64, repectively on clang or gcc Fixes to the failures will follow jsalling 2015-12-16 00:04:17 -06:00
  • 04adb2d2c9 Fix trailing whitespace CRLF, no code changes Now that the project is using .gitattributes, get rid of CRLF in the repo. jsalling 2016-01-06 17:23:43 -06:00
  • b64e62044b Fix trailing whitespace CRLF, no code changes Now that the project is using .gitattributes, get rid of CRLF in the repo. jsalling 2016-01-06 17:23:43 -06:00
  • edfba3793e Merge pull request #151 from jsalling/bugfix/add-tests-for-printing-numbers Mark VanderVoord 2016-01-05 19:17:52 -05:00
  • bb81879c04 Merge pull request #151 from jsalling/bugfix/add-tests-for-printing-numbers Mark VanderVoord 2016-01-05 19:17:52 -05:00
  • f52538d401 - fix whitespace - tweak docs Mark VanderVoord 2016-01-04 19:30:38 -05:00
  • a3115d7f2b - fix whitespace - tweak docs Mark VanderVoord 2016-01-04 19:30:38 -05:00
  • 0decf21b9d Merge pull request #149 from jsalling/refactor/fixture-cleanup Mark VanderVoord 2016-01-04 18:46:22 -05:00
  • 724cf20e7b Merge pull request #149 from jsalling/refactor/fixture-cleanup Mark VanderVoord 2016-01-04 18:46:22 -05:00
  • eac0943f53 Merge pull request #148 from jsalling/master Mark VanderVoord 2016-01-04 18:42:24 -05:00
  • 48297b6aaf Merge pull request #148 from jsalling/master Mark VanderVoord 2016-01-04 18:42:24 -05:00
  • a61ba9d43f Merge pull request #150 from pacheco017/unity-float-verbose-includes Mark VanderVoord 2015-12-28 13:17:28 -05:00
  • ac21220e1b Merge pull request #150 from pacheco017/unity-float-verbose-includes Mark VanderVoord 2015-12-28 13:17:28 -05:00
  • fe4001f876 Include <stdio.h> (for sprintf) when using UNITY_FLOAT_VERBOSE Matias Devenuta 2015-12-28 15:04:27 -03:00
  • 9911116f2f Include <stdio.h> (for sprintf) when using UNITY_FLOAT_VERBOSE Matias Devenuta 2015-12-28 15:04:27 -03:00
  • c5bfe0e100 Fixture C99 compliance on tricky macros for Spy & match core Unity version Add CFLAGS in Fixture Makefile to catch C99 rules with '-pedantic' jsalling 2015-12-22 12:40:31 -06:00
  • fe44ebe808 Fixture C99 compliance on tricky macros for Spy & match core Unity version Add CFLAGS in Fixture Makefile to catch C99 rules with '-pedantic' jsalling 2015-12-22 12:40:31 -06:00
  • 5cc5e3473d Add MACROs to check if tests are built using the Output Spy Ignore tests that need the Spy if we are not building with it jsalling 2015-12-18 17:50:32 -06:00
  • 9b49ad3337 Add MACROs to check if tests are built using the Output Spy Ignore tests that need the Spy if we are not building with it jsalling 2015-12-18 17:50:32 -06:00
  • 36e2ca192b Adding -D UNITY_OUTPUT_CHAR=putcharSpy to testing build targets Updated clang and gcc targets. Fixed spelling of LIMITS, which breaks the gcc_auto_sizeof.yml build. Commented -Wunreachable-code, Unity won't build on OSX clang with it, error in unity.c:769 & 932: 'default: break;' case. jsalling 2015-12-21 11:39:50 -06:00
  • 8ca2539906 Adding -D UNITY_OUTPUT_CHAR=putcharSpy to testing build targets Updated clang and gcc targets. Fixed spelling of LIMITS, which breaks the gcc_auto_sizeof.yml build. Commented -Wunreachable-code, Unity won't build on OSX clang with it, error in unity.c:769 & 932: 'default: break;' case. jsalling 2015-12-21 11:39:50 -06:00
  • a3d81dfa41 Add tests for printing numbers using a compile time replacement spy If Unity core is compiled with UNITY_OUTPUT_CHAR = putcharSpy, these tests will run, otherwise they are ignored and print a message Includes an implementation of putcharSpy, which allows checking the I/O from Unity during a test. Follows closely from the Fixture spy Tricky macros determine if putcharSpy is injected jsalling 2015-12-20 15:56:15 -06:00
  • c4e4279183 Add tests for printing numbers using a compile time replacement spy If Unity core is compiled with UNITY_OUTPUT_CHAR = putcharSpy, these tests will run, otherwise they are ignored and print a message Includes an implementation of putcharSpy, which allows checking the I/O from Unity during a test. Follows closely from the Fixture spy Tricky macros determine if putcharSpy is injected jsalling 2015-12-20 15:56:15 -06:00
  • caa3f6663d Add Makefile to fixture/test to make building tests easier No rake and ruby required to build existing tests jsalling 2015-12-18 17:48:35 -06:00
  • 61d651a3ad Add Makefile to fixture/test to make building tests easier No rake and ruby required to build existing tests jsalling 2015-12-18 17:48:35 -06:00
  • c629e120e1 Fix Leak Detection always passing, but printing a fail message Don't set CurrentTestFailed = 0 at end, move before last check These tests now fail if the output_Spy is not used instead of putchar() jsalling 2015-12-16 17:21:09 -06:00
  • ce8e17c5f7 Fix Leak Detection always passing, but printing a fail message Don't set CurrentTestFailed = 0 at end, move before last check These tests now fail if the output_Spy is not used instead of putchar() jsalling 2015-12-16 17:21:09 -06:00
  • 81cf5eb626 Do not add EOL after every ignored test using Unity Fixture Revert part of commit 77af37ad, code looked like a temporary change The behavior is back to the original, printing "....!..." in quiet mode Added an ignored test to Fixture for visual inspection jsalling 2015-12-15 17:32:55 -06:00
  • 230166a218 Do not add EOL after every ignored test using Unity Fixture Revert part of commit 77af37ad, code looked like a temporary change The behavior is back to the original, printing "....!..." in quiet mode Added an ignored test to Fixture for visual inspection jsalling 2015-12-15 17:32:55 -06:00
  • 1703bd1a5e Reduce stack usage by removing unnecessary call from group runner in Fixture Defining a group_runner which calls group_runner_runAll() is redundant jsalling 2015-12-14 17:04:17 -06:00
  • 0cde94c329 Reduce stack usage by removing unnecessary call from group runner in Fixture Defining a group_runner which calls group_runner_runAll() is redundant jsalling 2015-12-14 17:04:17 -06:00
  • f75f489b6e Get rid of magic numbers and strlen call for 'end' string in Fixture Using sizeof() instead of constant 4, makes code less fragile to change Change name of 'guard' in Guard struct to 'guard_space' jsalling 2015-12-14 16:40:07 -06:00
  • dd7f400863 Get rid of magic numbers and strlen call for 'end' string in Fixture Using sizeof() instead of constant 4, makes code less fragile to change Change name of 'guard' in Guard struct to 'guard_space' jsalling 2015-12-14 16:40:07 -06:00
  • e966a079a4 Fix printing of largest negative number, MIN 64-bits, -9223372036854775808 'divisor' ranges from 1 to 1e18, representable by a long or unsigned long 'number' becomes negative when cast as signed, so remove the cast and keep conversion warnings quiet by turning 'divisor' unsigned jsalling 2015-12-14 15:15:09 -06:00
  • f3c70965a7 Fix printing of largest negative number, MIN 64-bits, -9223372036854775808 'divisor' ranges from 1 to 1e18, representable by a long or unsigned long 'number' becomes negative when cast as signed, so remove the cast and keep conversion warnings quiet by turning 'divisor' unsigned jsalling 2015-12-14 15:15:09 -06:00
  • e8662ae1cc - Get these pointers all straightened out! Allow us to override them Mark VanderVoord 2015-12-10 21:47:03 -05:00
  • a782f0c9f3 - Get these pointers all straightened out! Allow us to override them Mark VanderVoord 2015-12-10 21:47:03 -05:00
  • 86b0d628fd - Applied details to FAIL messages as well Mark VanderVoord 2015-12-10 18:42:45 -05:00
  • 291c03cf78 - Applied details to FAIL messages as well Mark VanderVoord 2015-12-10 18:42:45 -05:00
  • 28195baaba - Made some tweaks to the way the new detail handling works (to make it look nicer, mostly) - Fixed a big ugly error in the fancy RUN_TEST handler Mark VanderVoord 2015-12-10 18:12:45 -05:00
  • 56221a3ebc - Made some tweaks to the way the new detail handling works (to make it look nicer, mostly) - Fixed a big ugly error in the fancy RUN_TEST handler Mark VanderVoord 2015-12-10 18:12:45 -05:00
  • dfbf21c2a3 - Added ability to tack on details to a Unity failure message. Mark VanderVoord 2015-12-10 13:06:41 -05:00
  • 5dcfe193b4 - Added ability to tack on details to a Unity failure message. Mark VanderVoord 2015-12-10 13:06:41 -05:00
  • 9aeaee26c9 - Cleaned up UnitPointer_Set (thanks Eric) - Cleaned up a casting warning error - Removed a couple semicolons from the end of macros SHAME! Mark VanderVoord 2015-12-07 21:41:44 -05:00
  • ab7b76cc97 - Cleaned up UnitPointer_Set (thanks Eric) - Cleaned up a casting warning error - Removed a couple semicolons from the end of macros SHAME! Mark VanderVoord 2015-12-07 21:41:44 -05:00
  • 90813a3e78 ignore more stuff we don't care about Mark VanderVoord 2015-12-03 16:01:39 -05:00
  • ec7a0d642a ignore more stuff we don't care about Mark VanderVoord 2015-12-03 16:01:39 -05:00
  • 535fe43c2a Merge pull request #146 from jsalling/unity-eol Mark VanderVoord 2015-11-24 06:43:27 -05:00
  • 0c911008dd Merge pull request #146 from jsalling/unity-eol Mark VanderVoord 2015-11-24 06:43:27 -05:00
  • de7cf8335e Transform plain macro into a function macro, UNITY_PRINT_EOL() This helps clarity and is more obvious, it looks like a print function jsalling 2015-11-23 21:03:46 -06:00
  • 8d90c0b726 Transform plain macro into a function macro, UNITY_PRINT_EOL() This helps clarity and is more obvious, it looks like a print function jsalling 2015-11-23 21:03:46 -06:00
  • d4353166d2 Replace all hard-coded '\n' with UNITY_PRINT_EOL macro in fixture Delete the { ;} braces and semicolon from UNITY_PRINT_EOL to give it expected behavior: 1) requires a semicolon 2) works in one-liner if-else statements If you need "\r\n" for EOL, define as the following to get the same behavior: do{UNITY_OUTPUT_CHAR('\r'); UNITY_OUTPUT_CHAR('\n');}while(0) jsalling 2015-11-23 17:09:30 -06:00
  • 402a14bb7b Replace all hard-coded '\n' with UNITY_PRINT_EOL macro in fixture Delete the { ;} braces and semicolon from UNITY_PRINT_EOL to give it expected behavior: 1) requires a semicolon 2) works in one-liner if-else statements If you need "\r\n" for EOL, define as the following to get the same behavior: do{UNITY_OUTPUT_CHAR('\r'); UNITY_OUTPUT_CHAR('\n');}while(0) jsalling 2015-11-23 17:09:30 -06:00
  • 5fc2b092d3 Move UNITY_PRINT_EOL to internals to allow access to it. Unity fixture needs access to this macro to be consistent. Add #ifndef wrapper for easier redefinition on systems that use "\r\n". jsalling 2015-11-23 14:21:43 -06:00
  • 8448b62dfa Move UNITY_PRINT_EOL to internals to allow access to it. Unity fixture needs access to this macro to be consistent. Add #ifndef wrapper for easier redefinition on systems that use "\r\n". jsalling 2015-11-23 14:21:43 -06:00
  • c6dc96f387 We're going to use the C99 isinf() and isnan() macros wherever possible now. If your compiler doesn't support this, define UNITY_EXCLUDE_MATH_H and it will go back to the old method Mark VanderVoord 2015-11-13 09:16:42 -05:00
  • 8048e5dd1b We're going to use the C99 isinf() and isnan() macros wherever possible now. If your compiler doesn't support this, define UNITY_EXCLUDE_MATH_H and it will go back to the old method Mark VanderVoord 2015-11-13 09:16:42 -05:00
  • e4a99b5f96 Merge pull request #141 from adiorion/cpp-fixes Mark VanderVoord 2015-11-13 08:15:03 -05:00
  • bab8512d2c Merge pull request #141 from adiorion/cpp-fixes Mark VanderVoord 2015-11-13 08:15:03 -05:00
  • 16e535c9f8 Merge pull request #142 from paul-wilkinson/docs-typo Mark VanderVoord 2015-11-10 12:05:41 -05:00
  • ac0b15455b Merge pull request #142 from paul-wilkinson/docs-typo Mark VanderVoord 2015-11-10 12:05:41 -05:00
  • 1c080665aa docs: fix some typos Paul Wilkinson 2015-11-09 19:53:06 +00:00
  • acaf77c118 docs: fix some typos Paul Wilkinson 2015-11-09 19:53:06 +00:00
  • d4b83f180b define setUp and tearDown under UNITY_WEAK_PRAGMA Andy Isaacson 2015-10-28 18:02:45 -07:00
  • c99780b484 define setUp and tearDown under UNITY_WEAK_PRAGMA Andy Isaacson 2015-10-28 18:02:45 -07:00
  • 0c9fc9bb33 add prototypes for setUp and tearDown to unity.h Andy Isaacson 2015-10-27 18:18:52 -07:00
  • 13287bb294 add prototypes for setUp and tearDown to unity.h Andy Isaacson 2015-10-27 18:18:52 -07:00
  • bc8533836b add C++ guards in unity.h Andy Isaacson 2015-10-27 17:24:55 -07:00
  • 3a37b5a8d9 add C++ guards in unity.h Andy Isaacson 2015-10-27 17:24:55 -07:00
  • e896830484 Merge pull request #139 from jeremyhannon/master Mark VanderVoord 2015-10-15 06:29:11 -04:00
  • 823e165b21 Merge pull request #139 from jeremyhannon/master Mark VanderVoord 2015-10-15 06:29:11 -04:00
  • 1273112a05 MISRA rule 19.10: parentheses around macro params Jeremy Hannon 2015-10-14 17:19:26 -05:00
  • 90c0cfec19 MISRA rule 19.10: parentheses around macro params Jeremy Hannon 2015-10-14 17:19:26 -05:00
  • 6621bc81c4 Merge pull request #136 from algernon/h/fixture/unity_free-NULL-safety Mark VanderVoord 2015-10-06 06:50:52 -04:00
  • 9b12c0222a Merge pull request #136 from algernon/h/fixture/unity_free-NULL-safety Mark VanderVoord 2015-10-06 06:50:52 -04:00
  • 1affe544d2 unity_fixture: Make unity_free() NULL-safe Gergely Nagy 2015-10-06 10:44:44 +02:00
  • afb4b9c00d unity_fixture: Make unity_free() NULL-safe Gergely Nagy 2015-10-06 10:44:44 +02:00
  • 7f9f937cd1 Merge pull request #134 from mjago/master Mark VanderVoord 2015-09-18 07:02:34 -04:00
  • 70d6cb5780 Fix custom message for 64bit WITHIN_MESSAGE macros Martyn Jago 2015-09-18 11:54:09 +01:00
  • bc307bd600 properly slash paths passed to UnityBegin in test runner generator Mark VanderVoord 2015-08-18 08:27:15 -04:00
  • 98e8590fce Use correct macro for unity_fixture's FAIL. Output used headers from test runner generator Mark VanderVoord 2015-08-18 08:03:50 -04:00
  • f97e03d063 Merge pull request #128 from XelaRellum/fix_for_compiler_warning_signed_unsigned Mark VanderVoord 2015-08-03 10:13:43 -04:00
  • e3c86b659c Fixes compiler warning about comparison of signed/unsigned Alexander Mueller 2015-08-03 10:48:17 +02:00
  • 7ff000f29f Merge pull request #126 from tabascoeye/patch-1 Mark VanderVoord 2015-07-28 17:20:17 -04:00
  • f72ca64b52 "usage" output to show .py ext instead of .rb ¯\_(ツ)_/¯ 2015-07-27 14:24:55 +02:00
  • a7b85335be the test runner generator now has the ability to also output a header file for the tests, which can get pulled into the test itself if desired. Mark VanderVoord 2015-07-21 15:35:33 -04:00
  • ab7e322a04 protect against capturing both declaration and definitions and therefore creating a runner which runs that test twice. Mark VanderVoord 2015-07-21 09:37:26 -04:00
  • 16a7d30d5e INTPTR_MAX is defined as nothing on some targets (looking at you HP-UX) and therefore these lines would crash. Adding 0 to the check makes these lines always run. Mark VanderVoord 2015-07-21 08:38:48 -04:00
  • e47ac34c82 Fix default path in unity test summarizer Mark VanderVoord 2015-07-21 08:29:56 -04:00