Commit Graph

  • 3bb51bd740 Fix C89 warnings about variables at top of scope, enums, variadic macros Add extern UnityFixture in internals header. Add C89 target in Makefile clang will show these warnings but can suppress "//" with -Wno-comment. jsalling 2016-02-17 22:26:18 -06:00
  • aae49fcb8d Fix C89 warnings about variables at top of scope, enums, variadic macros Add extern UnityFixture in internals header. Add C89 target in Makefile clang will show these warnings but can suppress "//" with -Wno-comment. jsalling 2016-02-17 22:26:18 -06:00
  • bcf6515329 Protect test runner generator against characters in strings that look like comments or functions Mark VanderVoord 2016-02-25 15:35:45 -05:00
  • 6feb90cef6 Protect test runner generator against characters in strings that look like comments or functions Mark VanderVoord 2016-02-25 15:35:45 -05:00
  • f8d5f0eee6 Clean up Ignore Test function in Fixture By removing the call to the Conclude function the code is simplified and doesn't depend on global state updates. Tests that are ignored after the testBody is called still output the right EOL. jsalling 2016-02-11 15:06:09 -06:00
  • ad10c4209e Clean up Ignore Test function in Fixture By removing the call to the Conclude function the code is simplified and doesn't depend on global state updates. Tests that are ignored after the testBody is called still output the right EOL. jsalling 2016-02-11 15:06:09 -06:00
  • 915e3fb9fc Merge pull request #174 from jsalling/feature/using-spy-macro Mark VanderVoord 2016-02-25 13:05:12 -05:00
  • 301916d939 Merge pull request #174 from jsalling/feature/using-spy-macro Mark VanderVoord 2016-02-25 13:05:12 -05:00
  • f55bed38a6 Delete function call syntax from Spy detect macros This fixes #168. See that github.com issue for more discussion. Allows the tests to build when putchar() is defined as a macro with parenthesis around it, as in the ARM embedded gcc compiler. jsalling 2016-02-24 00:19:53 -06:00
  • fc50b7675e Delete function call syntax from Spy detect macros This fixes #168. See that github.com issue for more discussion. Allows the tests to build when putchar() is defined as a macro with parenthesis around it, as in the ARM embedded gcc compiler. jsalling 2016-02-24 00:19:53 -06:00
  • 49e0c87841 Add output styler for junit output (Thanks Kris Boultbee) Mark VanderVoord 2016-02-25 11:34:46 -05:00
  • 1a157f012f Add output styler for junit output (Thanks Kris Boultbee) Mark VanderVoord 2016-02-25 11:34:46 -05:00
  • 324000d8e2 Merge pull request #173 from jsalling/rename/template Mark VanderVoord 2016-02-24 21:57:23 -05:00
  • bbd0bd2018 Merge pull request #173 from jsalling/rename/template Mark VanderVoord 2016-02-24 21:57:23 -05:00
  • 862d5d7d3d Rename template for testing to be more fitting jsalling 2016-02-16 22:32:32 -06:00
  • 31a2dbaf75 Rename template for testing to be more fitting jsalling 2016-02-16 22:32:32 -06:00
  • a7f81e8a04 Merge pull request #172 from pacheco017/UnityPrintFloat-overflow-fixes Mark VanderVoord 2016-02-24 20:16:45 -05:00
  • 07c5a7c2e9 Merge pull request #172 from pacheco017/UnityPrintFloat-overflow-fixes Mark VanderVoord 2016-02-24 20:16:45 -05:00
  • c17705358f UnityPrintFloat(): bigger temporal buffer Matias Devenuta 2016-02-24 19:52:30 -03:00
  • 876d2b6447 UnityPrintFloat(): bigger temporal buffer Matias Devenuta 2016-02-24 19:52:30 -03:00
  • 50259a1329 Fix UnityPrintFloat() buffer overflow Matias Devenuta 2016-02-18 17:43:55 -03:00
  • de3e86945f Fix UnityPrintFloat() buffer overflow Matias Devenuta 2016-02-18 17:43:55 -03:00
  • 433ee63575 Added ability to finish test immediately with a pass condition by using TEST_PASS Mark VanderVoord 2016-02-24 16:00:55 -05:00
  • 3d04875903 Added ability to finish test immediately with a pass condition by using TEST_PASS Mark VanderVoord 2016-02-24 16:00:55 -05:00
  • 3a775ccd70 Merge pull request #171 from jsalling/feature/fix-linux-warnings Mark VanderVoord 2016-02-24 06:46:29 -05:00
  • bfacd416c1 Merge pull request #171 from jsalling/feature/fix-linux-warnings Mark VanderVoord 2016-02-24 06:46:29 -05:00
  • 3faa143f21 Fix additional primitive type conversion warnings on Linux Using gcc 4.8 on Ubuntu 14 jsalling 2016-02-23 14:46:52 -06:00
  • fd64faa982 Fix additional primitive type conversion warnings on Linux Using gcc 4.8 on Ubuntu 14 jsalling 2016-02-23 14:46:52 -06:00
  • 7fff3fc034 Merge pull request #170 from jsalling/feature/fix-compiler-warnings Mark VanderVoord 2016-02-23 06:38:57 -05:00
  • 189d50e9f1 Merge pull request #170 from jsalling/feature/fix-compiler-warnings Mark VanderVoord 2016-02-23 06:38:57 -05:00
  • 4cc964962b Merge pull request #169 from jsalling/feature/remove-wrappers Mark VanderVoord 2016-02-22 07:12:49 -05:00
  • 2f5b7b655e Merge pull request #169 from jsalling/feature/remove-wrappers Mark VanderVoord 2016-02-22 07:12:49 -05:00
  • f31667ad18 Merge pull request #166 from jsalling/bugfix/line-numbers Mark VanderVoord 2016-02-18 14:18:20 -05:00
  • ddf1a6a81c Merge pull request #166 from jsalling/bugfix/line-numbers Mark VanderVoord 2016-02-18 14:18:20 -05:00
  • 3826b3a1e1 Merge pull request #164 from jsalling/bugfix/conversion-warnings Mark VanderVoord 2016-02-18 07:02:08 -05:00
  • 9070e4dfce Merge pull request #164 from jsalling/bugfix/conversion-warnings Mark VanderVoord 2016-02-18 07:02:08 -05:00
  • 05066785e1 Merge pull request #163 from jsalling/feature/move-makefile-output Mark VanderVoord 2016-02-18 06:50:15 -05:00
  • 6d5a20dd23 Merge pull request #163 from jsalling/feature/move-makefile-output Mark VanderVoord 2016-02-18 06:50:15 -05:00
  • 2337d6e837 Merge pull request #165 from jsalling/cleanup/file-permissions Mark VanderVoord 2016-02-18 06:47:09 -05:00
  • 50e962e0de Merge pull request #165 from jsalling/cleanup/file-permissions Mark VanderVoord 2016-02-18 06:47:09 -05:00
  • 2107e7060b Variables used in Fixture tests should be static Gets rid of warnings about extern with clang's -Weverything jsalling 2016-02-17 22:20:56 -06:00
  • 93697af40c Variables used in Fixture tests should be static Gets rid of warnings about extern with clang's -Weverything jsalling 2016-02-17 22:20:56 -06:00
  • 7b0f3cf986 Clean up conversion warnings in Fixture Turn on -Wconversion in Makefile, fix all warnings jsalling 2016-02-17 22:17:05 -06:00
  • 79d58c719b Clean up conversion warnings in Fixture Turn on -Wconversion in Makefile, fix all warnings jsalling 2016-02-17 22:17:05 -06:00
  • c3371664ba Clean up int conversion warnings in core Unity using a 32-bit build To expose warnings use -Wconversion -m32, and *not* -D UNITY_SUPPORT_64 In 32-bit mode, the variable and parameter are the same width, so sign conversion is implicit. In 64-bit, implicit conversion is clean. jsalling 2016-02-12 15:59:46 -06:00
  • 501342a973 Clean up int conversion warnings in core Unity using a 32-bit build To expose warnings use -Wconversion -m32, and *not* -D UNITY_SUPPORT_64 In 32-bit mode, the variable and parameter are the same width, so sign conversion is implicit. In 64-bit, implicit conversion is clean. jsalling 2016-02-12 15:59:46 -06:00
  • 773c7f1770 Permissions changed to -x for testunity.c, reverts part of 51af84a7 jsalling 2016-02-12 13:25:14 -06:00
  • ab5c83b8ba Permissions changed to -x for testunity.c, reverts part of 51af84a7 jsalling 2016-02-12 13:25:14 -06:00
  • ad14ccf26b Add strict compiler flags to Makefile and a 'clean' target Comment out -Wconversion for now, since the build would fail jsalling 2016-02-09 14:24:00 -06:00
  • 9c456ebfc8 Add strict compiler flags to Makefile and a 'clean' target Comment out -Wconversion for now, since the build would fail jsalling 2016-02-09 14:24:00 -06:00
  • 5e7780fd60 Delete unused internals functions for failure, ignore, & test counts. These wrapper functions should be in Unity core if warranted. Use the Unity struct directly for access, or consider macro functions jsalling 2016-02-05 22:11:20 -06:00
  • e41d907c84 Delete unused internals functions for failure, ignore, & test counts. These wrapper functions should be in Unity core if warranted. Use the Unity struct directly for access, or consider macro functions jsalling 2016-02-05 22:11:20 -06:00
  • 943fef8a17 Fix printing the test line number for leak detection failures in Fixture The old failure would print the line in unity_fixture.c, not very useful. Now using CurrentTestLineNumber, which is better. jsalling 2016-02-09 10:39:22 -06:00
  • 984dbbd4e9 Fix printing the test line number for leak detection failures in Fixture The old failure would print the line in unity_fixture.c, not very useful. Now using CurrentTestLineNumber, which is better. jsalling 2016-02-09 10:39:22 -06:00
  • 36ee2d2111 Add test for setting max number of pointers in Fixture jsalling 2016-02-09 10:36:33 -06:00
  • b778e5cb13 Add test for setting max number of pointers in Fixture jsalling 2016-02-09 10:36:33 -06:00
  • 822a537d2e Remove opaque typedef from UnityFixture struct, as done in core Unity jsalling 2016-02-08 16:53:10 -06:00
  • dd99d0b654 Remove opaque typedef from UnityFixture struct, as done in core Unity jsalling 2016-02-08 16:53:10 -06:00
  • 6b664fc803 Pass through correct line info on failures in Fixture pointer setting jsalling 2016-01-15 22:59:52 -06:00
  • 263d568c1a Pass through correct line info on failures in Fixture pointer setting jsalling 2016-01-15 22:59:52 -06:00
  • 4c384658e5 Move makefile output to build/ dir for Fixture testing jsalling 2016-02-05 21:48:23 -06:00
  • aadcd7a928 Move makefile output to build/ dir for Fixture testing jsalling 2016-02-05 21:48:23 -06:00
  • 189085d03a Check for writes to guard space on malloc'd buffers in Fixture There was already some space reserved as a guard, added check for writes before the beginning of the buffer. Did not change the 'overrun' message. Underrun buffer writes are likely to be a more rare case. jsalling 2016-02-05 18:56:44 -06:00
  • 68ef708b24 Check for writes to guard space on malloc'd buffers in Fixture There was already some space reserved as a guard, added check for writes before the beginning of the buffer. Did not change the 'overrun' message. Underrun buffer writes are likely to be a more rare case. jsalling 2016-02-05 18:56:44 -06:00
  • 7943c766b9 Merge pull request #161 from jsalling/feature/fixture-remove-dependencies Mark VanderVoord 2016-02-03 21:00:24 -05:00
  • aff7a8390f Merge pull request #161 from jsalling/feature/fixture-remove-dependencies Mark VanderVoord 2016-02-03 21:00:24 -05:00
  • 955b221218 Add configuration option UNITY_EXCLUDE_STDLIB_MALLOC to Fixture This feature removes the dependency on malloc/free for constrained embedded systems without a heap. It uses a static heap inside Unity Fixture. Setting UNITY_INTERNAL_HEAP_SIZE_BYTES sizes the heap. Add tests for new option, add targets to makefile for running tests. UNITY_FIXTURE_MALLOC for Fixture use only, remove from unity_output_Spy.c. jsalling 2016-02-01 23:54:06 -06:00
  • a172314908 Add configuration option UNITY_EXCLUDE_STDLIB_MALLOC to Fixture This feature removes the dependency on malloc/free for constrained embedded systems without a heap. It uses a static heap inside Unity Fixture. Setting UNITY_INTERNAL_HEAP_SIZE_BYTES sizes the heap. Add tests for new option, add targets to makefile for running tests. UNITY_FIXTURE_MALLOC for Fixture use only, remove from unity_output_Spy.c. jsalling 2016-02-01 23:54:06 -06:00
  • ed2842fd4d Merge pull request #160 from pmendham/master Mark VanderVoord 2016-02-01 18:20:37 -05:00
  • cd0789a05d Merge pull request #160 from pmendham/master Mark VanderVoord 2016-02-01 18:20:37 -05:00
  • 099b0db22b Updated mock determination code to be more efficient applying the feedback from @mvandervoord (Thanks). Peter Mendham 2016-02-01 22:48:23 +00:00
  • 4ee6864796 Updated mock determination code to be more efficient applying the feedback from @mvandervoord (Thanks). Peter Mendham 2016-02-01 22:48:23 +00:00
  • ccb29e80c2 Add NULL safety checks to Fixture allocation functions Consistent use of one-liners and NULL jsalling 2016-01-31 23:15:00 -06:00
  • ffa99a4f03 Add NULL safety checks to Fixture allocation functions Consistent use of one-liners and NULL jsalling 2016-01-31 23:15:00 -06:00
  • e2ad88b9c0 Add checks for NULL return value to Fixture tests and spy Help failures in the spy by adding filename and message to output jsalling 2016-01-31 22:44:45 -06:00
  • b33d325ea8 Add checks for NULL return value to Fixture tests and spy Help failures in the spy by adding filename and message to output jsalling 2016-01-31 22:44:45 -06:00
  • 63a0b98faf Remove atoi() dependency, only need stdlib.h in Fixture for malloc For redefinition of UNITY_FIXTURE_MALLOC/...FREE use both or replace both. Clean up whitespace, remaining void*, and comment. jsalling 2016-01-30 22:35:59 -06:00
  • 9dd169018e Remove atoi() dependency, only need stdlib.h in Fixture for malloc For redefinition of UNITY_FIXTURE_MALLOC/...FREE use both or replace both. Clean up whitespace, remaining void*, and comment. jsalling 2016-01-30 22:35:59 -06:00
  • 4ea563e65b Added support for mocks in sub-directories. This supports mock headers of the form: #include "some/dir/MockMyCode.h" Where the mock name is actually MockMyCode. Peter Mendham 2016-01-28 20:45:58 +00:00
  • e3178cd2f2 Added support for mocks in sub-directories. This supports mock headers of the form: #include "some/dir/MockMyCode.h" Where the mock name is actually MockMyCode. Peter Mendham 2016-01-28 20:45:58 +00:00
  • f36bd5f521 Merge pull request #159 from pmendham/master Mark VanderVoord 2016-01-27 09:52:01 -05:00
  • 1f7e20eec9 Merge pull request #159 from pmendham/master Mark VanderVoord 2016-01-27 09:52:01 -05:00
  • 9a9d6c75cf Removed unecessary output when generating a test runner Peter Mendham 2016-01-27 14:42:29 +00:00
  • 8b13b7b144 Removed unecessary output when generating a test runner Peter Mendham 2016-01-27 14:42:29 +00:00
  • 2179e54d6d Merge pull request #158 from jsalling/bugfix/fixture-rakefile-fails Mark VanderVoord 2016-01-24 09:55:50 -05:00
  • 65f15a9275 Merge pull request #158 from jsalling/bugfix/fixture-rakefile-fails Mark VanderVoord 2016-01-24 09:55:50 -05:00
  • 044a1f517d Merge pull request #156 from pmendham/master Mark VanderVoord 2016-01-20 09:08:18 -05:00
  • 00e0e22aad Merge pull request #156 from pmendham/master Mark VanderVoord 2016-01-20 09:08:18 -05:00
  • 55a75ded7a Improved header file generation. Changed the guard syntax as it was cumbersome for header files in deep sub-directories. Added framework/mock includes to make the header file stand alone. Made sure that a valid prototype was generated in the case of no arguments (void). Peter Mendham 2016-01-20 13:48:15 +00:00
  • 04c396287f Improved header file generation. Changed the guard syntax as it was cumbersome for header files in deep sub-directories. Added framework/mock includes to make the header file stand alone. Made sure that a valid prototype was generated in the case of no arguments (void). Peter Mendham 2016-01-20 13:48:15 +00:00
  • 2e4799111c Added a command line option to change the name of main. This allows alternative entry points. This is intended for the integration of the unit test into a larger system or for it to be used with a platform/OS which requires an application entry point other than main. At the moment there is no way to change the type signature. Peter Mendham 2016-01-20 13:45:25 +00:00
  • 622e37e890 Added a command line option to change the name of main. This allows alternative entry points. This is intended for the integration of the unit test into a larger system or for it to be used with a platform/OS which requires an application entry point other than main. At the moment there is no way to change the type signature. Peter Mendham 2016-01-20 13:45:25 +00:00
  • cd472439bf Fixture rakefile has a conflict defining UNITY_OUTPUT_CHAR Make core Unity rakefile helper follow Fixture define procedure. This commit reverts parts of 36e2ca1. jsalling 2016-01-19 23:47:32 -06:00
  • 8eb170420e Fixture rakefile has a conflict defining UNITY_OUTPUT_CHAR Make core Unity rakefile helper follow Fixture define procedure. This commit reverts parts of 8ca2539. jsalling 2016-01-19 23:47:32 -06:00
  • 34a30f8e98 Delete dangling function prototype in Fixture internals jsalling 2016-01-15 23:30:23 -06:00
  • 4764fbd651 Delete dangling function prototype in Fixture internals jsalling 2016-01-15 23:30:23 -06:00
  • a7b60dfc88 Consistent use of * in types in the Fixture, whitespace only jsalling 2016-01-15 23:11:29 -06:00
  • 6f47939179 Consistent use of * in types in the Fixture, whitespace only jsalling 2016-01-15 23:11:29 -06:00
  • 693417847b Remove unnecessary stdio.h dependency and clean up Fixture Delete unused variables and empty functions Make setUp & tearDown (used in Unity core) optionally defined if 'weak' linking is present jsalling 2016-01-15 22:35:43 -06:00
  • 2f6dec8911 Remove unnecessary stdio.h dependency and clean up Fixture Delete unused variables and empty functions Make setUp & tearDown (used in Unity core) optionally defined if 'weak' linking is present jsalling 2016-01-15 22:35:43 -06:00