ceedling 0.20.3 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (407) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +1 -0
  4. data/Rakefile +1 -0
  5. data/bin/ceedling +79 -26
  6. data/lib/ceedling/configurator_plugins.rb +0 -18
  7. data/lib/ceedling/rules_cmock.rake +1 -1
  8. data/lib/ceedling/tasks_base.rake +5 -1
  9. data/lib/ceedling/tasks_tests.rake +12 -9
  10. data/lib/ceedling/version.rb +1 -1
  11. data/lib/ceedling/version.rb.erb +1 -1
  12. data/plugins/fake_function_framework/README.md +250 -0
  13. data/plugins/fake_function_framework/Rakefile +19 -0
  14. data/plugins/fake_function_framework/examples/fff_example/project.yml +71 -0
  15. data/plugins/fake_function_framework/examples/fff_example/rakefile.rb +7 -0
  16. data/plugins/fake_function_framework/examples/fff_example/src/bar.c +1 -0
  17. data/plugins/fake_function_framework/examples/fff_example/src/bar.h +13 -0
  18. data/plugins/fake_function_framework/examples/fff_example/src/custom_types.h +6 -0
  19. data/plugins/fake_function_framework/examples/fff_example/src/display.c +7 -0
  20. data/plugins/fake_function_framework/examples/fff_example/src/display.h +16 -0
  21. data/plugins/fake_function_framework/examples/fff_example/src/event_processor.c +92 -0
  22. data/plugins/fake_function_framework/examples/fff_example/src/event_processor.h +11 -0
  23. data/plugins/fake_function_framework/examples/fff_example/src/foo.c +16 -0
  24. data/plugins/fake_function_framework/examples/fff_example/src/foo.h +8 -0
  25. data/plugins/fake_function_framework/examples/fff_example/src/subfolder/zzz.c +1 -0
  26. data/plugins/fake_function_framework/examples/fff_example/src/subfolder/zzz.h +6 -0
  27. data/plugins/fake_function_framework/examples/fff_example/test/test_event_processor.c +155 -0
  28. data/plugins/fake_function_framework/examples/fff_example/test/test_foo.c +47 -0
  29. data/plugins/fake_function_framework/lib/fake_function_framework.rb +87 -0
  30. data/plugins/fake_function_framework/lib/fff_mock_generator.rb +159 -0
  31. data/plugins/fake_function_framework/spec/fff_mock_generator_spec.rb +464 -0
  32. data/plugins/fake_function_framework/spec/spec_helper.rb +96 -0
  33. data/plugins/fake_function_framework/src/fff_unity_helper.h +33 -0
  34. data/plugins/fake_function_framework/vendor/fff/LICENSE +25 -0
  35. data/plugins/fake_function_framework/vendor/fff/Makefile +10 -0
  36. data/plugins/fake_function_framework/vendor/fff/README.md +454 -0
  37. data/plugins/fake_function_framework/vendor/fff/buildandtest +15 -0
  38. data/plugins/fake_function_framework/vendor/fff/examples/Makefile +7 -0
  39. data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/Makefile +64 -0
  40. data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/driver.c +24 -0
  41. data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/driver.h +11 -0
  42. data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/driver.test.cpp +50 -0
  43. data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/driver.test.fff.cpp +62 -0
  44. data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/hardware_abstraction.h +15 -0
  45. data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/registers.h +13 -0
  46. data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/DISPLAY.h +17 -0
  47. data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/Kata.txt +25 -0
  48. data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/Makefile +67 -0
  49. data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/SYSTEM.h +21 -0
  50. data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/UI.c +48 -0
  51. data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/UI.h +12 -0
  52. data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/UI_test_ansic.c +183 -0
  53. data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/UI_test_cpp.cpp +136 -0
  54. data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/test_suite_template.c +34 -0
  55. data/plugins/fake_function_framework/vendor/fff/fakegen.rb +420 -0
  56. data/plugins/fake_function_framework/vendor/fff/fff.h +5112 -0
  57. data/plugins/fake_function_framework/vendor/fff/gtest/Makefile +22 -0
  58. data/plugins/fake_function_framework/vendor/fff/gtest/gtest-all.cc +9118 -0
  59. data/plugins/fake_function_framework/vendor/fff/gtest/gtest-main.cc +6 -0
  60. data/plugins/fake_function_framework/vendor/fff/gtest/gtest.h +19537 -0
  61. data/plugins/fake_function_framework/vendor/fff/test/Makefile +81 -0
  62. data/plugins/fake_function_framework/vendor/fff/test/c_test_framework.h +15 -0
  63. data/plugins/fake_function_framework/vendor/fff/test/fff_test_c.c +108 -0
  64. data/plugins/fake_function_framework/vendor/fff/test/fff_test_cpp.cpp +45 -0
  65. data/plugins/fake_function_framework/vendor/fff/test/fff_test_global_c.c +76 -0
  66. data/plugins/fake_function_framework/vendor/fff/test/fff_test_global_cpp.cpp +23 -0
  67. data/plugins/fake_function_framework/vendor/fff/test/global_fakes.c +13 -0
  68. data/plugins/fake_function_framework/vendor/fff/test/global_fakes.h +37 -0
  69. data/plugins/fake_function_framework/vendor/fff/test/test_cases.include +276 -0
  70. data/plugins/gcov/README.md +9 -0
  71. data/plugins/gcov/{template.erb → assets/template.erb} +1 -1
  72. data/plugins/gcov/{defaults.yml → config/defaults.yml} +10 -1
  73. data/plugins/gcov/gcov.rake +20 -8
  74. data/plugins/gcov/{gcov.rb → lib/gcov.rb} +13 -24
  75. data/plugins/module_generator/module_generator.rake +3 -3
  76. data/plugins/warnings_report/lib/warnings_report.rb +69 -0
  77. data/plugins/xml_tests_report/lib/xml_tests_report.rb +108 -0
  78. data/spec/spec_system_helper.rb +1 -1
  79. data/vendor/c_exception/lib/CException.h +1 -1
  80. data/vendor/c_exception/vendor/unity/auto/generate_module.rb +16 -16
  81. data/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +61 -21
  82. data/vendor/c_exception/vendor/unity/auto/stylize_as_junit.rb +5 -1
  83. data/vendor/c_exception/vendor/unity/auto/unity_to_junit.py +146 -0
  84. data/vendor/c_exception/vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
  85. data/vendor/c_exception/vendor/unity/docs/UnityAssertionsReference.pdf +0 -0
  86. data/vendor/c_exception/vendor/unity/docs/UnityConfigurationGuide.pdf +0 -0
  87. data/vendor/c_exception/vendor/unity/docs/UnityGettingStartedGuide.pdf +0 -0
  88. data/vendor/c_exception/vendor/unity/docs/UnityHelperScriptsGuide.pdf +0 -0
  89. data/vendor/c_exception/vendor/unity/examples/example_1/makefile +1 -1
  90. data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.c +7 -7
  91. data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.c +2 -2
  92. data/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode.c +14 -14
  93. data/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode2.c +2 -2
  94. data/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +5 -5
  95. data/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +5 -5
  96. data/vendor/c_exception/vendor/unity/examples/unity_config.h +257 -0
  97. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +9 -8
  98. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +1 -0
  99. data/vendor/c_exception/vendor/unity/extras/fixture/test/Makefile +28 -8
  100. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +57 -17
  101. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +3 -0
  102. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +2 -3
  103. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +1 -1
  104. data/vendor/c_exception/vendor/unity/release/version.info +1 -1
  105. data/vendor/c_exception/vendor/unity/src/unity.c +336 -191
  106. data/vendor/c_exception/vendor/unity/src/unity.h +73 -69
  107. data/vendor/c_exception/vendor/unity/src/unity_internals.h +119 -90
  108. data/vendor/c_exception/vendor/unity/test/Makefile +51 -0
  109. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +5 -5
  110. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +5 -5
  111. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.c +5 -5
  112. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +6 -6
  113. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +6 -6
  114. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.c +6 -6
  115. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +6 -6
  116. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +8 -8
  117. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +6 -6
  118. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +6 -6
  119. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +8 -8
  120. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +7 -7
  121. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +5 -5
  122. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +7 -7
  123. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +5 -5
  124. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +5 -5
  125. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +7 -7
  126. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +6 -6
  127. data/vendor/c_exception/vendor/unity/test/rakefile +5 -0
  128. data/vendor/c_exception/vendor/unity/test/rakefile_helper.rb +9 -7
  129. data/vendor/c_exception/vendor/unity/test/targets/clang_file.yml +1 -0
  130. data/vendor/c_exception/vendor/unity/test/targets/clang_strict.yml +3 -0
  131. data/vendor/c_exception/vendor/unity/test/targets/gcc_32.yml +1 -0
  132. data/vendor/c_exception/vendor/unity/test/targets/gcc_64.yml +1 -0
  133. data/vendor/c_exception/vendor/unity/test/targets/gcc_auto_limits.yml +1 -0
  134. data/vendor/c_exception/vendor/unity/test/targets/gcc_auto_sizeof.yml +1 -0
  135. data/vendor/c_exception/vendor/unity/test/targets/gcc_auto_stdint.yml +1 -0
  136. data/vendor/c_exception/vendor/unity/test/targets/gcc_manual_math.yml +1 -0
  137. data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v4.yml +1 -0
  138. data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5.yml +1 -0
  139. data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5_3.yml +1 -0
  140. data/vendor/c_exception/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +1 -0
  141. data/vendor/c_exception/vendor/unity/test/targets/iar_cortexm3_v5.yml +1 -0
  142. data/vendor/c_exception/vendor/unity/test/targets/iar_msp430.yml +1 -0
  143. data/vendor/c_exception/vendor/unity/test/targets/iar_sh2a_v6.yml +1 -0
  144. data/vendor/c_exception/vendor/unity/test/testdata/CException.h +11 -0
  145. data/vendor/c_exception/vendor/unity/test/testdata/Defs.h +8 -0
  146. data/vendor/c_exception/vendor/unity/test/testdata/cmock.h +14 -0
  147. data/vendor/c_exception/vendor/unity/test/testdata/mockMock.h +13 -0
  148. data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGenerator.c +183 -0
  149. data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +65 -0
  150. data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +192 -0
  151. data/vendor/c_exception/vendor/unity/test/tests/test_generate_test_runner.rb +1221 -71
  152. data/vendor/c_exception/vendor/unity/test/tests/testparameterized.c +1 -1
  153. data/vendor/c_exception/vendor/unity/test/tests/testunity.c +127 -5
  154. data/vendor/cmock/docs/CMock_Summary.md +1 -1
  155. data/vendor/cmock/lib/cmock_generator.rb +7 -2
  156. data/vendor/cmock/lib/cmock_header_parser.rb +29 -9
  157. data/vendor/cmock/scripts/create_mock.rb +1 -1
  158. data/vendor/cmock/test/system/test_compilation/const.h +15 -0
  159. data/vendor/cmock/test/unit/cmock_generator_main_test.rb +4 -4
  160. data/vendor/cmock/test/unit/cmock_header_parser_test.rb +136 -73
  161. data/vendor/cmock/vendor/c_exception/lib/CException.h +1 -1
  162. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_module.rb +16 -16
  163. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +61 -21
  164. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/stylize_as_junit.rb +5 -1
  165. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_to_junit.py +146 -0
  166. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
  167. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityAssertionsReference.pdf +0 -0
  168. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityConfigurationGuide.pdf +0 -0
  169. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityGettingStartedGuide.pdf +0 -0
  170. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityHelperScriptsGuide.pdf +0 -0
  171. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/makefile +1 -1
  172. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.c +7 -7
  173. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.c +2 -2
  174. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode.c +14 -14
  175. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode2.c +2 -2
  176. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +5 -5
  177. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +5 -5
  178. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/unity_config.h +257 -0
  179. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +9 -8
  180. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +1 -0
  181. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/Makefile +28 -8
  182. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +57 -17
  183. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +3 -0
  184. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +2 -3
  185. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +1 -1
  186. data/vendor/cmock/vendor/c_exception/vendor/unity/release/version.info +1 -1
  187. data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.c +336 -191
  188. data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.h +73 -69
  189. data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity_internals.h +119 -90
  190. data/vendor/cmock/vendor/c_exception/vendor/unity/test/Makefile +51 -0
  191. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +5 -5
  192. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +5 -5
  193. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.c +5 -5
  194. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +6 -6
  195. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +6 -6
  196. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.c +6 -6
  197. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +6 -6
  198. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +8 -8
  199. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +6 -6
  200. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +6 -6
  201. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +8 -8
  202. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +7 -7
  203. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +5 -5
  204. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +7 -7
  205. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +5 -5
  206. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +5 -5
  207. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +7 -7
  208. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +6 -6
  209. data/vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile +5 -0
  210. data/vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile_helper.rb +9 -7
  211. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/clang_file.yml +1 -0
  212. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/clang_strict.yml +3 -0
  213. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_32.yml +1 -0
  214. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_64.yml +1 -0
  215. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_auto_limits.yml +1 -0
  216. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_auto_sizeof.yml +1 -0
  217. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_auto_stdint.yml +1 -0
  218. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_manual_math.yml +1 -0
  219. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v4.yml +1 -0
  220. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5.yml +1 -0
  221. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5_3.yml +1 -0
  222. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +1 -0
  223. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_cortexm3_v5.yml +1 -0
  224. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_msp430.yml +1 -0
  225. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_sh2a_v6.yml +1 -0
  226. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/CException.h +11 -0
  227. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/Defs.h +8 -0
  228. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/cmock.h +14 -0
  229. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/mockMock.h +13 -0
  230. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGenerator.c +183 -0
  231. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +65 -0
  232. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +192 -0
  233. data/vendor/cmock/vendor/c_exception/vendor/unity/test/tests/test_generate_test_runner.rb +1221 -71
  234. data/vendor/cmock/vendor/c_exception/vendor/unity/test/tests/testparameterized.c +1 -1
  235. data/vendor/cmock/vendor/c_exception/vendor/unity/test/tests/testunity.c +127 -5
  236. data/vendor/cmock/vendor/unity/auto/generate_module.rb +16 -16
  237. data/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +61 -21
  238. data/vendor/cmock/vendor/unity/auto/stylize_as_junit.rb +5 -1
  239. data/vendor/cmock/vendor/unity/auto/unity_to_junit.py +146 -0
  240. data/vendor/cmock/vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
  241. data/vendor/cmock/vendor/unity/docs/UnityAssertionsReference.pdf +0 -0
  242. data/vendor/cmock/vendor/unity/docs/UnityConfigurationGuide.pdf +0 -0
  243. data/vendor/cmock/vendor/unity/docs/UnityGettingStartedGuide.pdf +0 -0
  244. data/vendor/cmock/vendor/unity/docs/UnityHelperScriptsGuide.pdf +0 -0
  245. data/vendor/cmock/vendor/unity/examples/example_1/makefile +1 -1
  246. data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.c +7 -7
  247. data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.c +2 -2
  248. data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode.c +14 -14
  249. data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode2.c +2 -2
  250. data/vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +5 -5
  251. data/vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +5 -5
  252. data/vendor/cmock/vendor/unity/examples/unity_config.h +257 -0
  253. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +3 -0
  254. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +5 -2
  255. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.c +1 -2
  256. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.h +1 -1
  257. data/vendor/cmock/vendor/unity/src/unity.c +329 -186
  258. data/vendor/cmock/vendor/unity/src/unity.h +73 -69
  259. data/vendor/cmock/vendor/unity/src/unity_internals.h +119 -94
  260. data/vendor/cmock/vendor/unity/test/Makefile +4 -5
  261. data/vendor/cmock/vendor/unity/test/expectdata/testsample_cmd.c +5 -5
  262. data/vendor/cmock/vendor/unity/test/expectdata/testsample_def.c +5 -5
  263. data/vendor/cmock/vendor/unity/test/expectdata/testsample_head1.c +5 -5
  264. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_cmd.c +6 -6
  265. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_def.c +6 -6
  266. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_head1.c +6 -6
  267. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new1.c +6 -6
  268. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new2.c +8 -8
  269. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_param.c +6 -6
  270. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run1.c +6 -6
  271. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run2.c +8 -8
  272. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_yaml.c +7 -7
  273. data/vendor/cmock/vendor/unity/test/expectdata/testsample_new1.c +5 -5
  274. data/vendor/cmock/vendor/unity/test/expectdata/testsample_new2.c +7 -7
  275. data/vendor/cmock/vendor/unity/test/expectdata/testsample_param.c +5 -5
  276. data/vendor/cmock/vendor/unity/test/expectdata/testsample_run1.c +5 -5
  277. data/vendor/cmock/vendor/unity/test/expectdata/testsample_run2.c +7 -7
  278. data/vendor/cmock/vendor/unity/test/expectdata/testsample_yaml.c +6 -6
  279. data/vendor/cmock/vendor/unity/test/rakefile +5 -0
  280. data/vendor/cmock/vendor/unity/test/rakefile_helper.rb +9 -7
  281. data/vendor/cmock/vendor/unity/test/targets/clang_file.yml +1 -0
  282. data/vendor/cmock/vendor/unity/test/targets/clang_strict.yml +3 -0
  283. data/vendor/cmock/vendor/unity/test/targets/gcc_32.yml +1 -0
  284. data/vendor/cmock/vendor/unity/test/targets/gcc_64.yml +1 -0
  285. data/vendor/cmock/vendor/unity/test/targets/gcc_auto_limits.yml +1 -0
  286. data/vendor/cmock/vendor/unity/test/targets/gcc_auto_sizeof.yml +1 -0
  287. data/vendor/cmock/vendor/unity/test/targets/gcc_auto_stdint.yml +1 -0
  288. data/vendor/cmock/vendor/unity/test/targets/gcc_manual_math.yml +1 -0
  289. data/vendor/cmock/vendor/unity/test/targets/iar_arm_v4.yml +1 -0
  290. data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5.yml +1 -0
  291. data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5_3.yml +1 -0
  292. data/vendor/cmock/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +1 -0
  293. data/vendor/cmock/vendor/unity/test/targets/iar_cortexm3_v5.yml +1 -0
  294. data/vendor/cmock/vendor/unity/test/targets/iar_msp430.yml +1 -0
  295. data/vendor/cmock/vendor/unity/test/targets/iar_sh2a_v6.yml +1 -0
  296. data/vendor/cmock/vendor/unity/test/testdata/CException.h +11 -0
  297. data/vendor/cmock/vendor/unity/test/testdata/Defs.h +8 -0
  298. data/vendor/cmock/vendor/unity/test/testdata/cmock.h +14 -0
  299. data/vendor/cmock/vendor/unity/test/testdata/mockMock.h +13 -0
  300. data/vendor/cmock/vendor/unity/test/testdata/testRunnerGenerator.c +183 -0
  301. data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +65 -0
  302. data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +192 -0
  303. data/vendor/cmock/vendor/unity/test/tests/test_generate_test_runner.rb +1221 -71
  304. data/vendor/cmock/vendor/unity/test/tests/testparameterized.c +1 -1
  305. data/vendor/cmock/vendor/unity/test/tests/testunity.c +104 -7
  306. data/vendor/deep_merge/README +94 -94
  307. data/vendor/deep_merge/Rakefile +28 -28
  308. data/vendor/deep_merge/lib/deep_merge.rb +211 -211
  309. data/vendor/deep_merge/test/test_deep_merge.rb +553 -553
  310. data/vendor/unity/auto/generate_module.rb +16 -16
  311. data/vendor/unity/auto/generate_test_runner.rb +61 -21
  312. data/vendor/unity/auto/stylize_as_junit.rb +5 -1
  313. data/vendor/unity/auto/unity_to_junit.py +146 -0
  314. data/vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
  315. data/vendor/unity/docs/UnityAssertionsReference.pdf +0 -0
  316. data/vendor/unity/docs/UnityConfigurationGuide.pdf +0 -0
  317. data/vendor/unity/docs/UnityGettingStartedGuide.pdf +0 -0
  318. data/vendor/unity/docs/UnityHelperScriptsGuide.pdf +0 -0
  319. data/vendor/unity/examples/example_1/makefile +1 -1
  320. data/vendor/unity/examples/example_1/src/ProductionCode.c +7 -7
  321. data/vendor/unity/examples/example_1/src/ProductionCode2.c +2 -2
  322. data/vendor/unity/examples/example_1/test/TestProductionCode.c +14 -14
  323. data/vendor/unity/examples/example_1/test/TestProductionCode2.c +2 -2
  324. data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +5 -5
  325. data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +5 -5
  326. data/vendor/unity/examples/unity_config.h +257 -0
  327. data/vendor/unity/extras/fixture/src/unity_fixture.c +3 -0
  328. data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +5 -2
  329. data/vendor/unity/extras/fixture/test/unity_output_Spy.c +1 -2
  330. data/vendor/unity/extras/fixture/test/unity_output_Spy.h +1 -1
  331. data/vendor/unity/src/unity.c +329 -186
  332. data/vendor/unity/src/unity.h +73 -69
  333. data/vendor/unity/src/unity_internals.h +119 -94
  334. data/vendor/unity/test/Makefile +4 -5
  335. data/vendor/unity/test/expectdata/testsample_cmd.c +5 -5
  336. data/vendor/unity/test/expectdata/testsample_def.c +5 -5
  337. data/vendor/unity/test/expectdata/testsample_head1.c +5 -5
  338. data/vendor/unity/test/expectdata/testsample_mock_cmd.c +6 -6
  339. data/vendor/unity/test/expectdata/testsample_mock_def.c +6 -6
  340. data/vendor/unity/test/expectdata/testsample_mock_head1.c +6 -6
  341. data/vendor/unity/test/expectdata/testsample_mock_new1.c +6 -6
  342. data/vendor/unity/test/expectdata/testsample_mock_new2.c +8 -8
  343. data/vendor/unity/test/expectdata/testsample_mock_param.c +6 -6
  344. data/vendor/unity/test/expectdata/testsample_mock_run1.c +6 -6
  345. data/vendor/unity/test/expectdata/testsample_mock_run2.c +8 -8
  346. data/vendor/unity/test/expectdata/testsample_mock_yaml.c +7 -7
  347. data/vendor/unity/test/expectdata/testsample_new1.c +5 -5
  348. data/vendor/unity/test/expectdata/testsample_new2.c +7 -7
  349. data/vendor/unity/test/expectdata/testsample_param.c +5 -5
  350. data/vendor/unity/test/expectdata/testsample_run1.c +5 -5
  351. data/vendor/unity/test/expectdata/testsample_run2.c +7 -7
  352. data/vendor/unity/test/expectdata/testsample_yaml.c +6 -6
  353. data/vendor/unity/test/rakefile +5 -0
  354. data/vendor/unity/test/rakefile_helper.rb +9 -7
  355. data/vendor/unity/test/targets/clang_file.yml +1 -0
  356. data/vendor/unity/test/targets/clang_strict.yml +3 -0
  357. data/vendor/unity/test/targets/gcc_32.yml +1 -0
  358. data/vendor/unity/test/targets/gcc_64.yml +1 -0
  359. data/vendor/unity/test/targets/gcc_auto_limits.yml +1 -0
  360. data/vendor/unity/test/targets/gcc_auto_sizeof.yml +1 -0
  361. data/vendor/unity/test/targets/gcc_auto_stdint.yml +1 -0
  362. data/vendor/unity/test/targets/gcc_manual_math.yml +1 -0
  363. data/vendor/unity/test/targets/iar_arm_v4.yml +1 -0
  364. data/vendor/unity/test/targets/iar_arm_v5.yml +1 -0
  365. data/vendor/unity/test/targets/iar_arm_v5_3.yml +1 -0
  366. data/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +1 -0
  367. data/vendor/unity/test/targets/iar_cortexm3_v5.yml +1 -0
  368. data/vendor/unity/test/targets/iar_msp430.yml +1 -0
  369. data/vendor/unity/test/targets/iar_sh2a_v6.yml +1 -0
  370. data/vendor/unity/test/testdata/CException.h +11 -0
  371. data/vendor/unity/test/testdata/Defs.h +8 -0
  372. data/vendor/unity/test/testdata/cmock.h +14 -0
  373. data/vendor/unity/test/testdata/mockMock.h +13 -0
  374. data/vendor/unity/test/testdata/testRunnerGenerator.c +183 -0
  375. data/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +65 -0
  376. data/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +192 -0
  377. data/vendor/unity/test/tests/test_generate_test_runner.rb +1221 -71
  378. data/vendor/unity/test/tests/testparameterized.c +1 -1
  379. data/vendor/unity/test/tests/testunity.c +104 -7
  380. metadata +124 -32
  381. data/plugins/gcov/readme.txt +0 -0
  382. data/plugins/warnings_report/warnings_report.rb +0 -71
  383. data/plugins/xml_tests_report/xml_tests_report.rb +0 -110
  384. data/vendor/c_exception/vendor/unity/docs/Unity Summary.odt +0 -0
  385. data/vendor/c_exception/vendor/unity/docs/Unity Summary.pdf +0 -0
  386. data/vendor/c_exception/vendor/unity/docs/Unity Summary.txt +0 -224
  387. data/vendor/c_exception/vendor/unity/test/testdata/mocksample.c +0 -51
  388. data/vendor/c_exception/vendor/unity/test/testdata/sample.yml +0 -9
  389. data/vendor/c_exception/vendor/unity/test/testdata/testsample.c +0 -68
  390. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/Unity Summary.odt +0 -0
  391. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/Unity Summary.pdf +0 -0
  392. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/Unity Summary.txt +0 -224
  393. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/mocksample.c +0 -51
  394. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/sample.yml +0 -9
  395. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testsample.c +0 -68
  396. data/vendor/cmock/vendor/unity/docs/Unity Summary.odt +0 -0
  397. data/vendor/cmock/vendor/unity/docs/Unity Summary.pdf +0 -0
  398. data/vendor/cmock/vendor/unity/docs/Unity Summary.txt +0 -224
  399. data/vendor/cmock/vendor/unity/test/testdata/mocksample.c +0 -51
  400. data/vendor/cmock/vendor/unity/test/testdata/sample.yml +0 -9
  401. data/vendor/cmock/vendor/unity/test/testdata/testsample.c +0 -68
  402. data/vendor/unity/docs/Unity Summary.odt +0 -0
  403. data/vendor/unity/docs/Unity Summary.pdf +0 -0
  404. data/vendor/unity/docs/Unity Summary.txt +0 -224
  405. data/vendor/unity/test/testdata/mocksample.c +0 -51
  406. data/vendor/unity/test/testdata/sample.yml +0 -9
  407. data/vendor/unity/test/testdata/testsample.c +0 -68
@@ -18,50 +18,54 @@ extern "C"
18
18
  void setUp(void);
19
19
  void tearDown(void);
20
20
 
21
- //-------------------------------------------------------
22
- // Configuration Options
23
- //-------------------------------------------------------
24
- // All options described below should be passed as a compiler flag to all files using Unity. If you must add #defines, place them BEFORE the #include above.
25
-
26
- // Integers/longs/pointers
27
- // - Unity attempts to automatically discover your integer sizes
28
- // - define UNITY_EXCLUDE_STDINT_H to stop attempting to look in <stdint.h>
29
- // - define UNITY_EXCLUDE_LIMITS_H to stop attempting to look in <limits.h>
30
- // - define UNITY_EXCLUDE_SIZEOF to stop attempting to use sizeof in macros
31
- // - If you cannot use the automatic methods above, you can force Unity by using these options:
32
- // - define UNITY_SUPPORT_64
33
- // - define UNITY_INT_WIDTH
34
- // - UNITY_LONG_WIDTH
35
- // - UNITY_POINTER_WIDTH
36
-
37
- // Floats
38
- // - define UNITY_EXCLUDE_FLOAT to disallow floating point comparisons
39
- // - define UNITY_FLOAT_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_FLOAT
40
- // - define UNITY_FLOAT_TYPE to specify doubles instead of single precision floats
41
- // - define UNITY_FLOAT_VERBOSE to print floating point values in errors (uses sprintf)
42
- // - define UNITY_INCLUDE_DOUBLE to allow double floating point comparisons
43
- // - define UNITY_EXCLUDE_DOUBLE to disallow double floating point comparisons (default)
44
- // - define UNITY_DOUBLE_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_DOUBLE
45
- // - define UNITY_DOUBLE_TYPE to specify something other than double
46
- // - define UNITY_DOUBLE_VERBOSE to print floating point values in errors (uses sprintf)
47
- // - define UNITY_VERBOSE_NUMBER_MAX_LENGTH to change maximum length of printed numbers (used by sprintf)
48
-
49
- // Output
50
- // - by default, Unity prints to standard out with putchar. define UNITY_OUTPUT_CHAR(a) with a different function if desired
51
-
52
- // Optimization
53
- // - by default, line numbers are stored in unsigned shorts. Define UNITY_LINE_TYPE with a different type if your files are huge
54
- // - by default, test and failure counters are unsigned shorts. Define UNITY_COUNTER_TYPE with a different type if you want to save space or have more than 65535 Tests.
55
-
56
- // Test Cases
57
- // - define UNITY_SUPPORT_TEST_CASES to include the TEST_CASE macro, though really it's mostly about the runner generator script
58
-
59
- // Parameterized Tests
60
- // - you'll want to create a define of TEST_CASE(...) which basically evaluates to nothing
61
-
62
- //-------------------------------------------------------
63
- // Basic Fail and Ignore
64
- //-------------------------------------------------------
21
+ /*-------------------------------------------------------
22
+ * Configuration Options
23
+ *-------------------------------------------------------
24
+ * All options described below should be passed as a compiler flag to all files using Unity. If you must add #defines, place them BEFORE the #include above.
25
+
26
+ * Integers/longs/pointers
27
+ * - Unity attempts to automatically discover your integer sizes
28
+ * - define UNITY_EXCLUDE_STDINT_H to stop attempting to look in <stdint.h>
29
+ * - define UNITY_EXCLUDE_LIMITS_H to stop attempting to look in <limits.h>
30
+ * - define UNITY_EXCLUDE_SIZEOF to stop attempting to use sizeof in macros
31
+ * - If you cannot use the automatic methods above, you can force Unity by using these options:
32
+ * - define UNITY_SUPPORT_64
33
+ * - define UNITY_INT_WIDTH
34
+ * - UNITY_LONG_WIDTH
35
+ * - UNITY_POINTER_WIDTH
36
+
37
+ * Floats
38
+ * - define UNITY_EXCLUDE_FLOAT to disallow floating point comparisons
39
+ * - define UNITY_FLOAT_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_FLOAT
40
+ * - define UNITY_FLOAT_TYPE to specify doubles instead of single precision floats
41
+ * - define UNITY_FLOAT_VERBOSE to print floating point values in errors (uses sprintf)
42
+ * - define UNITY_INCLUDE_DOUBLE to allow double floating point comparisons
43
+ * - define UNITY_EXCLUDE_DOUBLE to disallow double floating point comparisons (default)
44
+ * - define UNITY_DOUBLE_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_DOUBLE
45
+ * - define UNITY_DOUBLE_TYPE to specify something other than double
46
+ * - define UNITY_DOUBLE_VERBOSE to print floating point values in errors (uses sprintf)
47
+ * - define UNITY_VERBOSE_NUMBER_MAX_LENGTH to change maximum length of printed numbers (used by sprintf)
48
+
49
+ * Output
50
+ * - by default, Unity prints to standard out with putchar. define UNITY_OUTPUT_CHAR(a) with a different function if desired
51
+ * - define UNITY_DIFFERENTIATE_FINAL_FAIL to print FAILED (vs. FAIL) at test end summary - for automated search for failure
52
+
53
+ * Optimization
54
+ * - by default, line numbers are stored in unsigned shorts. Define UNITY_LINE_TYPE with a different type if your files are huge
55
+ * - by default, test and failure counters are unsigned shorts. Define UNITY_COUNTER_TYPE with a different type if you want to save space or have more than 65535 Tests.
56
+
57
+ * Test Cases
58
+ * - define UNITY_SUPPORT_TEST_CASES to include the TEST_CASE macro, though really it's mostly about the runner generator script
59
+
60
+ * Parameterized Tests
61
+ * - you'll want to create a define of TEST_CASE(...) which basically evaluates to nothing
62
+
63
+ * Tests with Arguments
64
+ * - you'll want to define UNITY_USE_COMMAND_LINE_ARGS if you have the test runner passing arguments to Unity
65
+
66
+ *-------------------------------------------------------
67
+ * Basic Fail and Ignore
68
+ *-------------------------------------------------------*/
65
69
 
66
70
  #define TEST_FAIL_MESSAGE(message) UNITY_TEST_FAIL(__LINE__, (message))
67
71
  #define TEST_FAIL() UNITY_TEST_FAIL(__LINE__, NULL)
@@ -69,15 +73,15 @@ void tearDown(void);
69
73
  #define TEST_IGNORE() UNITY_TEST_IGNORE(__LINE__, NULL)
70
74
  #define TEST_ONLY()
71
75
 
72
- //It is not necessary for you to call PASS. A PASS condition is assumed if nothing fails.
73
- //This method allows you to abort a test immediately with a PASS state, ignoring the remainder of the test.
76
+ /* It is not necessary for you to call PASS. A PASS condition is assumed if nothing fails.
77
+ * This method allows you to abort a test immediately with a PASS state, ignoring the remainder of the test. */
74
78
  #define TEST_PASS() longjmp(Unity.AbortFrame, 1)
75
79
 
76
- //-------------------------------------------------------
77
- // Test Asserts (simple)
78
- //-------------------------------------------------------
80
+ /*-------------------------------------------------------
81
+ * Test Asserts (simple)
82
+ *-------------------------------------------------------*/
79
83
 
80
- //Boolean
84
+ /* Boolean */
81
85
  #define TEST_ASSERT(condition) UNITY_TEST_ASSERT( (condition), __LINE__, " Expression Evaluated To FALSE")
82
86
  #define TEST_ASSERT_TRUE(condition) UNITY_TEST_ASSERT( (condition), __LINE__, " Expected TRUE Was FALSE")
83
87
  #define TEST_ASSERT_UNLESS(condition) UNITY_TEST_ASSERT( !(condition), __LINE__, " Expression Evaluated To TRUE")
@@ -85,7 +89,7 @@ void tearDown(void);
85
89
  #define TEST_ASSERT_NULL(pointer) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, " Expected NULL")
86
90
  #define TEST_ASSERT_NOT_NULL(pointer) UNITY_TEST_ASSERT_NOT_NULL((pointer), __LINE__, " Expected Non-NULL")
87
91
 
88
- //Integers (of all sizes)
92
+ /* Integers (of all sizes) */
89
93
  #define TEST_ASSERT_EQUAL_INT(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, NULL)
90
94
  #define TEST_ASSERT_EQUAL_INT8(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, NULL)
91
95
  #define TEST_ASSERT_EQUAL_INT16(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, NULL)
@@ -109,7 +113,7 @@ void tearDown(void);
109
113
  #define TEST_ASSERT_BIT_HIGH(bit, actual) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(-1), (actual), __LINE__, NULL)
110
114
  #define TEST_ASSERT_BIT_LOW(bit, actual) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(0), (actual), __LINE__, NULL)
111
115
 
112
- //Integer Ranges (of all sizes)
116
+ /* Integer Ranges (of all sizes) */
113
117
  #define TEST_ASSERT_INT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT_WITHIN((delta), (expected), (actual), __LINE__, NULL)
114
118
  #define TEST_ASSERT_INT8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT8_WITHIN((delta), (expected), (actual), __LINE__, NULL)
115
119
  #define TEST_ASSERT_INT16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT16_WITHIN((delta), (expected), (actual), __LINE__, NULL)
@@ -126,13 +130,13 @@ void tearDown(void);
126
130
  #define TEST_ASSERT_HEX32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, NULL)
127
131
  #define TEST_ASSERT_HEX64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX64_WITHIN((delta), (expected), (actual), __LINE__, NULL)
128
132
 
129
- //Structs and Strings
133
+ /* Structs and Strings */
130
134
  #define TEST_ASSERT_EQUAL_PTR(expected, actual) UNITY_TEST_ASSERT_EQUAL_PTR((expected), (actual), __LINE__, NULL)
131
135
  #define TEST_ASSERT_EQUAL_STRING(expected, actual) UNITY_TEST_ASSERT_EQUAL_STRING((expected), (actual), __LINE__, NULL)
132
136
  #define TEST_ASSERT_EQUAL_STRING_LEN(expected, actual, len) UNITY_TEST_ASSERT_EQUAL_STRING_LEN((expected), (actual), (len), __LINE__, NULL)
133
137
  #define TEST_ASSERT_EQUAL_MEMORY(expected, actual, len) UNITY_TEST_ASSERT_EQUAL_MEMORY((expected), (actual), (len), __LINE__, NULL)
134
138
 
135
- //Arrays
139
+ /* Arrays */
136
140
  #define TEST_ASSERT_EQUAL_INT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
137
141
  #define TEST_ASSERT_EQUAL_INT8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
138
142
  #define TEST_ASSERT_EQUAL_INT16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
@@ -152,7 +156,7 @@ void tearDown(void);
152
156
  #define TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
153
157
  #define TEST_ASSERT_EQUAL_MEMORY_ARRAY(expected, actual, len, num_elements) UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((expected), (actual), (len), (num_elements), __LINE__, NULL)
154
158
 
155
- //Floating Point (If Enabled)
159
+ /* Floating Point (If Enabled) */
156
160
  #define TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_FLOAT_WITHIN((delta), (expected), (actual), __LINE__, NULL)
157
161
  #define TEST_ASSERT_EQUAL_FLOAT(expected, actual) UNITY_TEST_ASSERT_EQUAL_FLOAT((expected), (actual), __LINE__, NULL)
158
162
  #define TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
@@ -165,7 +169,7 @@ void tearDown(void);
165
169
  #define TEST_ASSERT_FLOAT_IS_NOT_NAN(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN((actual), __LINE__, NULL)
166
170
  #define TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE((actual), __LINE__, NULL)
167
171
 
168
- //Double (If Enabled)
172
+ /* Double (If Enabled) */
169
173
  #define TEST_ASSERT_DOUBLE_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_DOUBLE_WITHIN((delta), (expected), (actual), __LINE__, NULL)
170
174
  #define TEST_ASSERT_EQUAL_DOUBLE(expected, actual) UNITY_TEST_ASSERT_EQUAL_DOUBLE((expected), (actual), __LINE__, NULL)
171
175
  #define TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
@@ -178,11 +182,11 @@ void tearDown(void);
178
182
  #define TEST_ASSERT_DOUBLE_IS_NOT_NAN(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN((actual), __LINE__, NULL)
179
183
  #define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, NULL)
180
184
 
181
- //-------------------------------------------------------
182
- // Test Asserts (with additional messages)
183
- //-------------------------------------------------------
185
+ /*-------------------------------------------------------
186
+ * Test Asserts (with additional messages)
187
+ *-------------------------------------------------------*/
184
188
 
185
- //Boolean
189
+ /* Boolean */
186
190
  #define TEST_ASSERT_MESSAGE(condition, message) UNITY_TEST_ASSERT( (condition), __LINE__, (message))
187
191
  #define TEST_ASSERT_TRUE_MESSAGE(condition, message) UNITY_TEST_ASSERT( (condition), __LINE__, (message))
188
192
  #define TEST_ASSERT_UNLESS_MESSAGE(condition, message) UNITY_TEST_ASSERT( !(condition), __LINE__, (message))
@@ -190,7 +194,7 @@ void tearDown(void);
190
194
  #define TEST_ASSERT_NULL_MESSAGE(pointer, message) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, (message))
191
195
  #define TEST_ASSERT_NOT_NULL_MESSAGE(pointer, message) UNITY_TEST_ASSERT_NOT_NULL((pointer), __LINE__, (message))
192
196
 
193
- //Integers (of all sizes)
197
+ /* Integers (of all sizes) */
194
198
  #define TEST_ASSERT_EQUAL_INT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, (message))
195
199
  #define TEST_ASSERT_EQUAL_INT8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, (message))
196
200
  #define TEST_ASSERT_EQUAL_INT16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, (message))
@@ -214,7 +218,7 @@ void tearDown(void);
214
218
  #define TEST_ASSERT_BIT_HIGH_MESSAGE(bit, actual, message) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(-1), (actual), __LINE__, (message))
215
219
  #define TEST_ASSERT_BIT_LOW_MESSAGE(bit, actual, message) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(0), (actual), __LINE__, (message))
216
220
 
217
- //Integer Ranges (of all sizes)
221
+ /* Integer Ranges (of all sizes) */
218
222
  #define TEST_ASSERT_INT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT_WITHIN((delta), (expected), (actual), __LINE__, (message))
219
223
  #define TEST_ASSERT_INT8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT8_WITHIN((delta), (expected), (actual), __LINE__, (message))
220
224
  #define TEST_ASSERT_INT16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT16_WITHIN((delta), (expected), (actual), __LINE__, (message))
@@ -231,13 +235,13 @@ void tearDown(void);
231
235
  #define TEST_ASSERT_HEX32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, (message))
232
236
  #define TEST_ASSERT_HEX64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX64_WITHIN((delta), (expected), (actual), __LINE__, (message))
233
237
 
234
- //Structs and Strings
238
+ /* Structs and Strings */
235
239
  #define TEST_ASSERT_EQUAL_PTR_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_PTR((expected), (actual), __LINE__, (message))
236
240
  #define TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_STRING((expected), (actual), __LINE__, (message))
237
- #define TEST_ASSERT_EQUAL_STRING_LEN_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_STRING_LEN((expected), (actual), (len), __LINE__, (message))
238
- #define TEST_ASSERT_EQUAL_MEMORY_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_MEMORY((expected), (actual), (len), __LINE__, (message))
241
+ #define TEST_ASSERT_EQUAL_STRING_LEN_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_STRING_LEN((expected), (actual), (len), __LINE__, (message))
242
+ #define TEST_ASSERT_EQUAL_MEMORY_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_MEMORY((expected), (actual), (len), __LINE__, (message))
239
243
 
240
- //Arrays
244
+ /* Arrays */
241
245
  #define TEST_ASSERT_EQUAL_INT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
242
246
  #define TEST_ASSERT_EQUAL_INT8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
243
247
  #define TEST_ASSERT_EQUAL_INT16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
@@ -257,7 +261,7 @@ void tearDown(void);
257
261
  #define TEST_ASSERT_EQUAL_STRING_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
258
262
  #define TEST_ASSERT_EQUAL_MEMORY_ARRAY_MESSAGE(expected, actual, len, num_elements, message) UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((expected), (actual), (len), (num_elements), __LINE__, (message))
259
263
 
260
- //Floating Point (If Enabled)
264
+ /* Floating Point (If Enabled) */
261
265
  #define TEST_ASSERT_FLOAT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_FLOAT_WITHIN((delta), (expected), (actual), __LINE__, (message))
262
266
  #define TEST_ASSERT_EQUAL_FLOAT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_FLOAT((expected), (actual), __LINE__, (message))
263
267
  #define TEST_ASSERT_EQUAL_FLOAT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
@@ -270,7 +274,7 @@ void tearDown(void);
270
274
  #define TEST_ASSERT_FLOAT_IS_NOT_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN((actual), __LINE__, (message))
271
275
  #define TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE((actual), __LINE__, (message))
272
276
 
273
- //Double (If Enabled)
277
+ /* Double (If Enabled) */
274
278
  #define TEST_ASSERT_DOUBLE_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_DOUBLE_WITHIN((delta), (expected), (actual), __LINE__, (message))
275
279
  #define TEST_ASSERT_EQUAL_DOUBLE_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_DOUBLE((expected), (actual), __LINE__, (message))
276
280
  #define TEST_ASSERT_EQUAL_DOUBLE_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
@@ -283,7 +287,7 @@ void tearDown(void);
283
287
  #define TEST_ASSERT_DOUBLE_IS_NOT_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN((actual), __LINE__, (message))
284
288
  #define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, (message))
285
289
 
286
- //end of UNITY_FRAMEWORK_H
290
+ /* end of UNITY_FRAMEWORK_H */
287
291
  #ifdef __cplusplus
288
292
  }
289
293
  #endif
@@ -13,10 +13,10 @@
13
13
 
14
14
  #include <setjmp.h>
15
15
 
16
- // Unity Attempts to Auto-Detect Integer Types
17
- // Attempt 1: UINT_MAX, ULONG_MAX, etc in <stdint.h>
18
- // Attempt 2: UINT_MAX, ULONG_MAX, etc in <limits.h>
19
- // Attempt 3: Deduced from sizeof() macros
16
+ /* Unity Attempts to Auto-Detect Integer Types
17
+ * Attempt 1: UINT_MAX, ULONG_MAX, etc in <stdint.h>
18
+ * Attempt 2: UINT_MAX, ULONG_MAX, etc in <limits.h>
19
+ * Attempt 3: Deduced from sizeof() macros */
20
20
  #ifndef UNITY_EXCLUDE_STDINT_H
21
21
  #include <stdint.h>
22
22
  #endif
@@ -33,7 +33,7 @@
33
33
  #define ULONG_MAX (sizeof(unsigned long) * 256 - 1)
34
34
  #endif
35
35
  #ifndef UINTPTR_MAX
36
- //apparently this is not a constant expression: (sizeof(unsigned int *) * 256 - 1) so we have to just let this fall through
36
+ /* apparently this is not a constant expression: (sizeof(unsigned int *) * 256 - 1) so we have to just let this fall through */
37
37
  #endif
38
38
  #endif
39
39
 
@@ -41,14 +41,14 @@
41
41
  #include <math.h>
42
42
  #endif
43
43
 
44
- //-------------------------------------------------------
45
- // Guess Widths If Not Specified
46
- //-------------------------------------------------------
44
+ /*-------------------------------------------------------
45
+ * Guess Widths If Not Specified
46
+ *-------------------------------------------------------*/
47
47
 
48
- // Determine the size of an int, if not already specificied.
49
- // We cannot use sizeof(int), because it is not yet defined
50
- // at this stage in the trnslation of the C program.
51
- // Therefore, infer it from UINT_MAX if possible.
48
+ /* Determine the size of an int, if not already specificied.
49
+ * We cannot use sizeof(int), because it is not yet defined
50
+ * at this stage in the trnslation of the C program.
51
+ * Therefore, infer it from UINT_MAX if possible. */
52
52
  #ifndef UNITY_INT_WIDTH
53
53
  #ifdef UINT_MAX
54
54
  #if (UINT_MAX == 0xFFFF)
@@ -64,9 +64,9 @@
64
64
  #define UNITY_INT_WIDTH (32)
65
65
  #endif
66
66
 
67
- // Determine the size of a long, if not already specified,
68
- // by following the process used above to define
69
- // UNITY_INT_WIDTH.
67
+ /* Determine the size of a long, if not already specified,
68
+ * by following the process used above to define
69
+ * UNITY_INT_WIDTH. */
70
70
  #ifndef UNITY_LONG_WIDTH
71
71
  #ifdef ULONG_MAX
72
72
  #if (ULONG_MAX == 0xFFFF)
@@ -82,9 +82,9 @@
82
82
  #define UNITY_LONG_WIDTH (32)
83
83
  #endif
84
84
 
85
- // Determine the size of a pointer, if not already specified,
86
- // by following the process used above to define
87
- // UNITY_INT_WIDTH.
85
+ /* Determine the size of a pointer, if not already specified,
86
+ * by following the process used above to define
87
+ * UNITY_INT_WIDTH. */
88
88
  #ifndef UNITY_POINTER_WIDTH
89
89
  #ifdef UINTPTR_MAX
90
90
  #if (UINTPTR_MAX+0 <= 0xFFFF)
@@ -111,9 +111,9 @@
111
111
  #define UNITY_POINTER_WIDTH UNITY_LONG_WIDTH
112
112
  #endif
113
113
 
114
- //-------------------------------------------------------
115
- // Int Support (Define types based on detected sizes)
116
- //-------------------------------------------------------
114
+ /*-------------------------------------------------------
115
+ * Int Support (Define types based on detected sizes)
116
+ *-------------------------------------------------------*/
117
117
 
118
118
  #if (UNITY_INT_WIDTH == 32)
119
119
  typedef unsigned char _UU8;
@@ -133,9 +133,9 @@
133
133
  #error Invalid UNITY_INT_WIDTH specified! (16 or 32 are supported)
134
134
  #endif
135
135
 
136
- //-------------------------------------------------------
137
- // 64-bit Support
138
- //-------------------------------------------------------
136
+ /*-------------------------------------------------------
137
+ * 64-bit Support
138
+ *-------------------------------------------------------*/
139
139
 
140
140
  #ifndef UNITY_SUPPORT_64
141
141
  #if UNITY_LONG_WIDTH > 32
@@ -150,13 +150,13 @@
150
150
 
151
151
  #ifndef UNITY_SUPPORT_64
152
152
 
153
- //No 64-bit Support
153
+ /* No 64-bit Support */
154
154
  typedef _UU32 _U_UINT;
155
155
  typedef _US32 _U_SINT;
156
156
 
157
157
  #else
158
158
 
159
- //64-bit Support
159
+ /* 64-bit Support */
160
160
  #if (UNITY_LONG_WIDTH == 32)
161
161
  typedef unsigned long long _UU64;
162
162
  typedef signed long long _US64;
@@ -171,9 +171,9 @@ typedef _US64 _U_SINT;
171
171
 
172
172
  #endif
173
173
 
174
- //-------------------------------------------------------
175
- // Pointer Support
176
- //-------------------------------------------------------
174
+ /*-------------------------------------------------------
175
+ * Pointer Support
176
+ *-------------------------------------------------------*/
177
177
 
178
178
  #if (UNITY_POINTER_WIDTH == 32)
179
179
  typedef _UU32 _UP;
@@ -194,16 +194,16 @@ typedef _US64 _U_SINT;
194
194
 
195
195
  #ifndef UNITY_INTERNAL_PTR
196
196
  #define UNITY_INTERNAL_PTR UNITY_PTR_ATTRIBUTE const void*
197
- //#define UNITY_INTERNAL_PTR UNITY_PTR_ATTRIBUTE const _UU8*
197
+ /* #define UNITY_INTERNAL_PTR UNITY_PTR_ATTRIBUTE const _UU8* */
198
198
  #endif
199
199
 
200
- //-------------------------------------------------------
201
- // Float Support
202
- //-------------------------------------------------------
200
+ /*-------------------------------------------------------
201
+ * Float Support
202
+ *-------------------------------------------------------*/
203
203
 
204
204
  #ifdef UNITY_EXCLUDE_FLOAT
205
205
 
206
- //No Floating Point Support
206
+ /* No Floating Point Support */
207
207
  #undef UNITY_INCLUDE_FLOAT
208
208
  #undef UNITY_FLOAT_PRECISION
209
209
  #undef UNITY_FLOAT_TYPE
@@ -215,7 +215,7 @@ typedef _US64 _U_SINT;
215
215
  #define UNITY_INCLUDE_FLOAT
216
216
  #endif
217
217
 
218
- //Floating Point Support
218
+ /* Floating Point Support */
219
219
  #ifndef UNITY_FLOAT_PRECISION
220
220
  #define UNITY_FLOAT_PRECISION (0.00001f)
221
221
  #endif
@@ -243,11 +243,11 @@ typedef UNITY_FLOAT_TYPE _UF;
243
243
 
244
244
  #endif
245
245
 
246
- //-------------------------------------------------------
247
- // Double Float Support
248
- //-------------------------------------------------------
246
+ /*-------------------------------------------------------
247
+ * Double Float Support
248
+ *-------------------------------------------------------*/
249
249
 
250
- //unlike FLOAT, we DON'T include by default
250
+ /* unlike FLOAT, we DON'T include by default */
251
251
  #ifndef UNITY_EXCLUDE_DOUBLE
252
252
  #ifndef UNITY_INCLUDE_DOUBLE
253
253
  #define UNITY_EXCLUDE_DOUBLE
@@ -256,7 +256,7 @@ typedef UNITY_FLOAT_TYPE _UF;
256
256
 
257
257
  #ifdef UNITY_EXCLUDE_DOUBLE
258
258
 
259
- //No Floating Point Support
259
+ /* No Floating Point Support */
260
260
  #undef UNITY_DOUBLE_PRECISION
261
261
  #undef UNITY_DOUBLE_TYPE
262
262
  #undef UNITY_DOUBLE_VERBOSE
@@ -267,7 +267,7 @@ typedef UNITY_FLOAT_TYPE _UF;
267
267
 
268
268
  #else
269
269
 
270
- //Double Floating Point Support
270
+ /* Double Floating Point Support */
271
271
  #ifndef UNITY_DOUBLE_PRECISION
272
272
  #define UNITY_DOUBLE_PRECISION (1e-12f)
273
273
  #endif
@@ -284,16 +284,35 @@ typedef UNITY_DOUBLE_TYPE _UD;
284
284
  #endif
285
285
  #endif
286
286
 
287
- //-------------------------------------------------------
288
- // Output Method: stdout (DEFAULT)
289
- //-------------------------------------------------------
287
+ /*-------------------------------------------------------
288
+ * Output Method: stdout (DEFAULT)
289
+ *-------------------------------------------------------*/
290
290
  #ifndef UNITY_OUTPUT_CHAR
291
- //Default to using putchar, which is defined in stdio.h
291
+ /* Default to using putchar, which is defined in stdio.h */
292
292
  #include <stdio.h>
293
- #define UNITY_OUTPUT_CHAR(a) putchar(a)
293
+ #define UNITY_OUTPUT_CHAR(a) (void)putchar(a)
294
294
  #else
295
- //If defined as something else, make sure we declare it here so it's ready for use
296
- extern int UNITY_OUTPUT_CHAR(int);
295
+ /* If defined as something else, make sure we declare it here so it's ready for use */
296
+ #ifndef UNITY_OMIT_OUTPUT_CHAR_HEADER_DECLARATION
297
+ extern void UNITY_OUTPUT_CHAR(int);
298
+ #endif
299
+ #endif
300
+
301
+ #ifndef UNITY_OUTPUT_FLUSH
302
+ /* Default to using fflush, which is defined in stdio.h */
303
+ #include <stdio.h>
304
+ #define UNITY_OUTPUT_FLUSH (void)fflush(stdout)
305
+ #else
306
+ /* If defined as something else, make sure we declare it here so it's ready for use */
307
+ #ifndef UNITY_OMIT_OUTPUT_FLUSH_HEADER_DECLARATION
308
+ extern void UNITY_OUTPUT_FLUSH(void);
309
+ #endif
310
+ #endif
311
+
312
+ #ifndef UNITY_OUTPUT_FLUSH
313
+ #define UNITY_FLUSH_CALL()
314
+ #else
315
+ #define UNITY_FLUSH_CALL() UNITY_OUTPUT_FLUSH
297
316
  #endif
298
317
 
299
318
  #ifndef UNITY_PRINT_EOL
@@ -308,9 +327,9 @@ extern int UNITY_OUTPUT_CHAR(int);
308
327
  #define UNITY_OUTPUT_COMPLETE()
309
328
  #endif
310
329
 
311
- //-------------------------------------------------------
312
- // Footprint
313
- //-------------------------------------------------------
330
+ /*-------------------------------------------------------
331
+ * Footprint
332
+ *-------------------------------------------------------*/
314
333
 
315
334
  #ifndef UNITY_LINE_TYPE
316
335
  #define UNITY_LINE_TYPE _U_UINT
@@ -320,12 +339,12 @@ extern int UNITY_OUTPUT_CHAR(int);
320
339
  #define UNITY_COUNTER_TYPE _U_UINT
321
340
  #endif
322
341
 
323
- //-------------------------------------------------------
324
- // Language Features Available
325
- //-------------------------------------------------------
342
+ /*-------------------------------------------------------
343
+ * Language Features Available
344
+ *-------------------------------------------------------*/
326
345
  #if !defined(UNITY_WEAK_ATTRIBUTE) && !defined(UNITY_WEAK_PRAGMA)
327
- # ifdef __GNUC__ // includes clang
328
- # if !(defined(__WIN32__) && defined(__clang__))
346
+ # ifdef __GNUC__ /* includes clang */
347
+ # if !(defined(__WIN32__) && defined(__clang__)) && !defined(__TMS470__)
329
348
  # define UNITY_WEAK_ATTRIBUTE __attribute__((weak))
330
349
  # endif
331
350
  # endif
@@ -337,9 +356,9 @@ extern int UNITY_OUTPUT_CHAR(int);
337
356
  #endif
338
357
 
339
358
 
340
- //-------------------------------------------------------
341
- // Internal Structs Needed
342
- //-------------------------------------------------------
359
+ /*-------------------------------------------------------
360
+ * Internal Structs Needed
361
+ *-------------------------------------------------------*/
343
362
 
344
363
  typedef void (*UnityTestFunction)(void);
345
364
 
@@ -397,6 +416,7 @@ typedef enum _UNITY_FLOAT_TRAIT_T
397
416
  UNITY_FLOAT_IS_NAN,
398
417
  UNITY_FLOAT_IS_NOT_DET,
399
418
  UNITY_FLOAT_IS_DET,
419
+ UNITY_FLOAT_INVALID_TRAIT
400
420
  } UNITY_FLOAT_TRAIT_T;
401
421
  #endif
402
422
 
@@ -419,18 +439,18 @@ struct _Unity
419
439
 
420
440
  extern struct _Unity Unity;
421
441
 
422
- //-------------------------------------------------------
423
- // Test Suite Management
424
- //-------------------------------------------------------
442
+ /*-------------------------------------------------------
443
+ * Test Suite Management
444
+ *-------------------------------------------------------*/
425
445
 
426
446
  void UnityBegin(const char* filename);
427
447
  int UnityEnd(void);
428
448
  void UnityConcludeTest(void);
429
449
  void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int FuncLineNum);
430
450
 
431
- //-------------------------------------------------------
432
- // Details Support
433
- //-------------------------------------------------------
451
+ /*-------------------------------------------------------
452
+ * Details Support
453
+ *-------------------------------------------------------*/
434
454
 
435
455
  #ifdef UNITY_EXCLUDE_DETAILS
436
456
  #define UNITY_CLR_DETAILS()
@@ -450,9 +470,9 @@ void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int
450
470
  #endif
451
471
  #endif
452
472
 
453
- //-------------------------------------------------------
454
- // Test Output
455
- //-------------------------------------------------------
473
+ /*-------------------------------------------------------
474
+ * Test Output
475
+ *-------------------------------------------------------*/
456
476
 
457
477
  void UnityPrint(const char* string);
458
478
  void UnityPrintMask(const _U_UINT mask, const _U_UINT number);
@@ -465,13 +485,13 @@ void UnityPrintNumberHex(const _U_UINT number, const char nibbles);
465
485
  void UnityPrintFloat(const _UF number);
466
486
  #endif
467
487
 
468
- //-------------------------------------------------------
469
- // Test Assertion Fuctions
470
- //-------------------------------------------------------
471
- // Use the macros below this section instead of calling
472
- // these directly. The macros have a consistent naming
473
- // convention and will pull in file and line information
474
- // for you.
488
+ /*-------------------------------------------------------
489
+ * Test Assertion Fuctions
490
+ *-------------------------------------------------------
491
+ * Use the macros below this section instead of calling
492
+ * these directly. The macros have a consistent naming
493
+ * convention and will pull in file and line information
494
+ * for you. */
475
495
 
476
496
  void UnityAssertEqualNumber(const _U_SINT expected,
477
497
  const _U_SINT actual,
@@ -565,23 +585,23 @@ void UnityAssertDoubleSpecial(const _UD actual,
565
585
  const UNITY_FLOAT_TRAIT_T style);
566
586
  #endif
567
587
 
568
- //-------------------------------------------------------
569
- // Error Strings We Might Need
570
- //-------------------------------------------------------
588
+ /*-------------------------------------------------------
589
+ * Error Strings We Might Need
590
+ *-------------------------------------------------------*/
571
591
 
572
592
  extern const char UnityStrErrFloat[];
573
593
  extern const char UnityStrErrDouble[];
574
594
  extern const char UnityStrErr64[];
575
595
 
576
- //-------------------------------------------------------
577
- // Test Running Macros
578
- //-------------------------------------------------------
596
+ /*-------------------------------------------------------
597
+ * Test Running Macros
598
+ *-------------------------------------------------------*/
579
599
 
580
600
  #define TEST_PROTECT() (setjmp(Unity.AbortFrame) == 0)
581
601
 
582
602
  #define TEST_ABORT() {longjmp(Unity.AbortFrame, 1);}
583
603
 
584
- //This tricky series of macros gives us an optional line argument to treat it as RUN_TEST(func, num=__LINE__)
604
+ /* This tricky series of macros gives us an optional line argument to treat it as RUN_TEST(func, num=__LINE__) */
585
605
  #ifndef RUN_TEST
586
606
  #ifdef __STDC_VERSION__
587
607
  #if __STDC_VERSION__ >= 199901L
@@ -594,7 +614,7 @@ extern const char UnityStrErr64[];
594
614
  #endif
595
615
  #endif
596
616
 
597
- //If we can't do the tricky version, we'll just have to require them to always include the line number
617
+ /* If we can't do the tricky version, we'll just have to require them to always include the line number */
598
618
  #ifndef RUN_TEST
599
619
  #ifdef CMOCK
600
620
  #define RUN_TEST(func, num) UnityDefaultTestRun(func, #func, num)
@@ -620,16 +640,25 @@ extern const char UnityStrErr64[];
620
640
 
621
641
  #define UNITY_UNUSED(x) (void)(sizeof(x))
622
642
 
623
- //-------------------------------------------------------
624
- // Basic Fail and Ignore
625
- //-------------------------------------------------------
643
+ /*-----------------------------------------------
644
+ * Command Line Argument Support
645
+ *-----------------------------------------------*/
646
+
647
+ #ifdef UNITY_USE_COMMAND_LINE_ARGS
648
+ int UnityParseOptions(int argc, char** argv);
649
+ int UnityTestMatches(void);
650
+ #endif
651
+
652
+ /*-------------------------------------------------------
653
+ * Basic Fail and Ignore
654
+ *-------------------------------------------------------*/
626
655
 
627
656
  #define UNITY_TEST_FAIL(line, message) UnityFail( (message), (UNITY_LINE_TYPE)(line))
628
657
  #define UNITY_TEST_IGNORE(line, message) UnityIgnore( (message), (UNITY_LINE_TYPE)(line))
629
658
 
630
- //-------------------------------------------------------
631
- // Test Asserts
632
- //-------------------------------------------------------
659
+ /*-------------------------------------------------------
660
+ * Test Asserts
661
+ *-------------------------------------------------------*/
633
662
 
634
663
  #define UNITY_TEST_ASSERT(condition, line, message) if (condition) {} else {UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), (message));}
635
664
  #define UNITY_TEST_ASSERT_NULL(pointer, line, message) UNITY_TEST_ASSERT(((pointer) == NULL), (UNITY_LINE_TYPE)(line), (message))
@@ -754,5 +783,5 @@ extern const char UnityStrErr64[];
754
783
  #define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual, line, message) UnityAssertDoubleSpecial((_UD)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NOT_DET)
755
784
  #endif
756
785
 
757
- //End of UNITY_INTERNALS_H
786
+ /* End of UNITY_INTERNALS_H */
758
787
  #endif