Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Unity
提交
6695e9e9
T
Third Party Unity
项目概览
OpenHarmony
/
Third Party Unity
9 个月 前同步成功
通知
29
Star
144
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Unity
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6695e9e9
编写于
1月 13, 2017
作者:
M
Mark VanderVoord
提交者:
GitHub
1月 13, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #242 from jsalling/feature/fixture-test-name
Fixture - Remove duplicate output of test name in verbose mode
上级
c5e9a934
5f337219
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
12 deletion
+5
-12
examples/example_2/makefile
examples/example_2/makefile
+0
-1
extras/fixture/src/unity_fixture.c
extras/fixture/src/unity_fixture.c
+5
-0
src/unity.c
src/unity.c
+0
-9
src/unity_internals.h
src/unity_internals.h
+0
-2
未找到文件。
examples/example_2/makefile
浏览文件 @
6695e9e9
...
...
@@ -43,7 +43,6 @@ CFLAGS += -Wundef
CFLAGS
+=
-Wold-style-definition
CFLAGS
+=
-Wmissing-prototypes
CFLAGS
+=
-Wmissing-declarations
CFLAGS
+=
-DUNITY_FIXTURES
TARGET_BASE1
=
all_tests
TARGET1
=
$(TARGET_BASE1)$(TARGET_EXTENSION)
...
...
extras/fixture/src/unity_fixture.c
浏览文件 @
6695e9e9
...
...
@@ -81,7 +81,12 @@ void UnityTestRunner(unityfunction* setup,
if
(
!
UnityFixture
.
Verbose
)
UNITY_OUTPUT_CHAR
(
'.'
);
else
{
UnityPrint
(
printableName
);
#ifndef UNITY_REPEAT_TEST_NAME
Unity
.
CurrentTestName
=
NULL
;
#endif
}
Unity
.
NumberOfTests
++
;
UnityMalloc_StartTest
();
...
...
src/unity.c
浏览文件 @
6695e9e9
...
...
@@ -355,28 +355,19 @@ void UnityPrintOk(void)
static
void
UnityTestResultsBegin
(
const
char
*
file
,
const
UNITY_LINE_TYPE
line
);
static
void
UnityTestResultsBegin
(
const
char
*
file
,
const
UNITY_LINE_TYPE
line
)
{
#ifndef UNITY_FIXTURES
UnityPrint
(
file
);
UNITY_OUTPUT_CHAR
(
':'
);
UnityPrintNumber
((
UNITY_INT
)
line
);
UNITY_OUTPUT_CHAR
(
':'
);
UnityPrint
(
Unity
.
CurrentTestName
);
UNITY_OUTPUT_CHAR
(
':'
);
#else
UNITY_UNUSED
(
file
);
UNITY_UNUSED
(
line
);
#endif
}
/*-----------------------------------------------*/
static
void
UnityTestResultsFailBegin
(
const
UNITY_LINE_TYPE
line
);
static
void
UnityTestResultsFailBegin
(
const
UNITY_LINE_TYPE
line
)
{
#ifndef UNITY_FIXTURES
UnityTestResultsBegin
(
Unity
.
TestFile
,
line
);
#else
UNITY_UNUSED
(
line
);
#endif
UnityPrint
(
UnityStrFail
);
UNITY_OUTPUT_CHAR
(
':'
);
}
...
...
src/unity_internals.h
浏览文件 @
6695e9e9
...
...
@@ -575,8 +575,6 @@ extern const char UnityStrErr64[];
#define UNITY_END() UnityEnd()
#endif
#define UNITY_UNUSED(x) (void)(sizeof(x))
/*-----------------------------------------------
* Command Line Argument Support
*-----------------------------------------------*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录