mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-29 03:04:27 +01:00
cleanup of warnings
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Unity Test ![CI][]
|
# Unity Test ![CI][]
|
||||||
|
|
||||||
__Copyright (c) 2007 - 2024 Unity Project by Mike Karlesky, Mark VanderVoord, and Greg Williams__
|
__Copyright (c) 2007 - 2026 Unity Project by Mike Karlesky, Mark VanderVoord, and Greg Williams__
|
||||||
|
|
||||||
Welcome to the Unity Test Project, one of the main projects of ThrowTheSwitch.org.
|
Welcome to the Unity Test Project, one of the main projects of ThrowTheSwitch.org.
|
||||||
Unity Test is a unit testing framework built for C, with a focus on working with embedded toolchains.
|
Unity Test is a unit testing framework built for C, with a focus on working with embedded toolchains.
|
||||||
|
|||||||
@@ -239,17 +239,15 @@ class UnityTestRunnerGenerator
|
|||||||
if @options[:use_param_tests]
|
if @options[:use_param_tests]
|
||||||
idx = 0
|
idx = 0
|
||||||
tests.each do |test|
|
tests.each do |test|
|
||||||
if (test[:args].nil? || test[:args].empty?)
|
if test[:args].nil? || test[:args].empty?
|
||||||
idx += 1
|
idx += 1
|
||||||
else
|
else
|
||||||
test[:args].each do |args|
|
test[:args].each { idx += 1 }
|
||||||
idx += 1
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return idx
|
idx
|
||||||
else
|
else
|
||||||
return tests.size
|
tests.size
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
0
auto/unity_test_summary.rb
Normal file → Executable file
0
auto/unity_test_summary.rb
Normal file → Executable file
@@ -868,6 +868,8 @@ void UnityAssertEqualIntArray(UNITY_INTERNAL_PTR expected,
|
|||||||
const UNITY_DISPLAY_STYLE_T style,
|
const UNITY_DISPLAY_STYLE_T style,
|
||||||
const UNITY_FLAGS_T flags)
|
const UNITY_FLAGS_T flags)
|
||||||
{
|
{
|
||||||
|
UNITY_INT expect_val = 0;
|
||||||
|
UNITY_INT actual_val = 0;
|
||||||
UNITY_UINT32 elements = num_elements;
|
UNITY_UINT32 elements = num_elements;
|
||||||
unsigned int length = style & 0xF;
|
unsigned int length = style & 0xF;
|
||||||
unsigned int increment = 0;
|
unsigned int increment = 0;
|
||||||
@@ -895,9 +897,6 @@ void UnityAssertEqualIntArray(UNITY_INTERNAL_PTR expected,
|
|||||||
|
|
||||||
while ((elements > 0) && (elements--))
|
while ((elements > 0) && (elements--))
|
||||||
{
|
{
|
||||||
UNITY_INT expect_val;
|
|
||||||
UNITY_INT actual_val;
|
|
||||||
|
|
||||||
switch (length)
|
switch (length)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
|
|||||||
@@ -528,6 +528,10 @@ typedef enum
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wpadded"
|
||||||
|
#endif
|
||||||
struct UNITY_STORAGE_T
|
struct UNITY_STORAGE_T
|
||||||
{
|
{
|
||||||
const char* TestFile;
|
const char* TestFile;
|
||||||
@@ -556,6 +560,9 @@ struct UNITY_STORAGE_T
|
|||||||
jmp_buf AbortFrame;
|
jmp_buf AbortFrame;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
extern struct UNITY_STORAGE_T Unity;
|
extern struct UNITY_STORAGE_T Unity;
|
||||||
|
|
||||||
@@ -857,6 +864,7 @@ extern const char UnityStrErrFloat[];
|
|||||||
extern const char UnityStrErrDouble[];
|
extern const char UnityStrErrDouble[];
|
||||||
extern const char UnityStrErr64[];
|
extern const char UnityStrErr64[];
|
||||||
extern const char UnityStrErrShorthand[];
|
extern const char UnityStrErrShorthand[];
|
||||||
|
extern const char UnityStrErrDetailStack[];
|
||||||
|
|
||||||
/*-------------------------------------------------------
|
/*-------------------------------------------------------
|
||||||
* Test Running Macros
|
* Test Running Macros
|
||||||
|
|||||||
Reference in New Issue
Block a user