- 13 4月, 2016 2 次提交
-
-
由 Jerry Jacobs 提交于
-
由 Jerry Jacobs 提交于
-
- 03 3月, 2016 2 次提交
-
-
由 jsalling 提交于
Revert the previous commit. Add tests for extended enum cases. Fix crash due to accessing 'trait_names' array out of bounds. Adding an extra invalid value to the end of an enum causes '-Wswitch' flag to warn unless there is a switch default case - also enabled by '-Wall'.
-
由 jsalling 提交于
The clang compiler warns here with -Wunreachable-code The enum's switch statement covers all cases, so default is unused Leave the break in the code as a comment, to be more clear The history is this default case was added in f6bb7162 - compiler warning. Then the break was added in c6dc96f3.
-
- 27 2月, 2016 1 次提交
-
-
由 jsalling 提交于
Add extern UnityFixture in internals header. Add C89 target in Makefile clang will show these warnings but can suppress "//" with -Wno-comment.
-
- 25 2月, 2016 3 次提交
-
-
由 Matias Devenuta 提交于
With a buffer long enough, no truncation should be neccesary to format floats. Buffer length is user settable by defining UNITY_VERBOSE_NUMBER_MAX_LENGTH, otherwise a sensible default is used based on desired precision. See: http://stackoverflow.com/a/7235717
-
由 Matias Devenuta 提交于
UnityPrintFloat() overflowed with some inputs (eg. FLT_MAX)
-
由 Mark VanderVoord 提交于
-
- 24 2月, 2016 1 次提交
-
-
由 jsalling 提交于
Using gcc 4.8 on Ubuntu 14
-
- 13 2月, 2016 1 次提交
-
-
由 jsalling 提交于
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.
-
- 07 1月, 2016 2 次提交
-
-
由 jsalling 提交于
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 提交于
Now that the project is using .gitattributes, get rid of CRLF in the repo.
-
- 05 1月, 2016 1 次提交
-
-
由 Mark VanderVoord 提交于
- tweak docs
-
- 29 12月, 2015 1 次提交
-
-
由 Matias Devenuta 提交于
-
- 15 12月, 2015 1 次提交
-
-
由 jsalling 提交于
'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
-
- 11 12月, 2015 4 次提交
-
-
由 Mark VanderVoord 提交于
-
由 Mark VanderVoord 提交于
-
由 Mark VanderVoord 提交于
- Fixed a big ugly error in the fancy RUN_TEST handler
-
由 Mark VanderVoord 提交于
-
- 08 12月, 2015 1 次提交
-
-
由 Mark VanderVoord 提交于
- Cleaned up a casting warning error - Removed a couple semicolons from the end of macros SHAME!
-
- 24 11月, 2015 3 次提交
-
-
由 jsalling 提交于
This helps clarity and is more obvious, it looks like a print function
-
由 jsalling 提交于
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 提交于
Unity fixture needs access to this macro to be consistent. Add #ifndef wrapper for easier redefinition on systems that use "\r\n".
-
- 13 11月, 2015 1 次提交
-
-
由 Mark VanderVoord 提交于
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
-
- 29 10月, 2015 1 次提交
-
-
由 Andy Isaacson 提交于
The intent of UNITY_WEAK_PRAGMA is that we have weak symbols for setUp and tearDown in unity.o, so that developers can override these symbols if needed but the link works right if they are not defined. In order to do this using #pragma, the pragma and the definition of the function (not the declaration) need to be present in the same translation unit (source code file). Previously, the UNITY_WEAK_PRAGMA code was just declaring the setUp function, but not defining it, which means that developers had to add an empty setUp function to their tests in order to link.
-
- 28 10月, 2015 2 次提交
-
-
由 Andy Isaacson 提交于
-
由 Andy Isaacson 提交于
-
- 15 10月, 2015 1 次提交
-
-
由 Jeremy Hannon 提交于
Added parentheses around all macro parameters to resolve MISRA 2004 rule 19.10, "in the definition of a function-like macro, each instance of a parameter shall be enclosed in parenthesis" as tested with the IAR EW for 8051 compiler, version 9.20.2. The only questionable change is in "unity_fixture.h" where the nested macro DECLARE_TEST_CASE in RUN_TEST_CASE prevents surrounding params "group" and "name" with parentheses. However, it appears that macro DECLARE_TEST_CASE isn't used elsewhere, so I eliminated DECLARE_TEST_CASE and put its expansion directly in RUN_TEST_CASE. Now the following header files pass rule 19.10: * unity.h * unity_internals.h * unity_fixture.h For my own project, this change to the Unity test framework allows me to include my unit test code to be tested against MISRA rules as well, instead of just production code, to help enforce style and team guidelines.
-
- 18 9月, 2015 1 次提交
-
-
由 Martyn Jago 提交于
-
- 03 8月, 2015 1 次提交
-
-
由 Alexander Mueller 提交于
-
- 21 7月, 2015 1 次提交
-
-
由 Mark VanderVoord 提交于
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.
-
- 15 7月, 2015 2 次提交
-
-
由 Nimrod Zimerman 提交于
-
由 Nimrod Zimerman 提交于
This eliminates a compiler warning for certain compilers.
-
- 01 7月, 2015 1 次提交
-
-
由 Andrew Burks 提交于
Fixes #3: unity_fixture tests don't build. unity.c and unity_fixture_malloc_overrides.h neglected to include <stddef.h> even though the reference 'size_t' and 'NULL'.
-
- 20 6月, 2015 2 次提交
-
-
由 Mark VanderVoord 提交于
-
由 Mark VanderVoord 提交于
- casting to a (void*) was giving warnings to some compilers about double casting - casting from a u8 to u16/32/64 was giving warnings about changing alignment requirements
-
- 19 6月, 2015 1 次提交
-
-
由 ThingamaByte, LLC 提交于
-
- 23 5月, 2015 1 次提交
-
-
由 Sergey Gusarov 提交于
Double castings look ugly. And if Unity is compiled with -Wcast-qual flag these type castings produce a lot of warnings: unity/src/unity.c:490:80: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] UnityPrintNumberByStyle(*(UNITY_PTR_ATTRIBUTE const _US16*)(void*)ptr_exp, style); ^
-
- 23 4月, 2015 1 次提交
-
-
由 Eivind Tagseth 提交于
Compares two strings until maximum n bytes (i.e. strncmp()).
-
- 12 3月, 2015 1 次提交
-
-
由 Greg Williams 提交于
-