Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Unity
提交
368a7d89
T
Third Party Unity
项目概览
OpenHarmony
/
Third Party Unity
1 年多 前同步成功
通知
36
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看板
提交
368a7d89
编写于
10月 25, 2019
作者:
M
mvandervoord
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed a couple of mistakes in last commit
上级
d16c27b0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
4 deletion
+4
-4
src/unity_internals.h
src/unity_internals.h
+1
-1
test/Makefile
test/Makefile
+2
-3
test/targets/ansi.yml
test/targets/ansi.yml
+1
-0
未找到文件。
src/unity_internals.h
浏览文件 @
368a7d89
...
@@ -683,7 +683,7 @@ extern const char UnityStrErrShorthand[];
...
@@ -683,7 +683,7 @@ extern const char UnityStrErrShorthand[];
#ifndef RUN_TEST
#ifndef RUN_TEST
#ifdef __STDC_VERSION__
#ifdef __STDC_VERSION__
#if __STDC_VERSION__ >= 199901L
#if __STDC_VERSION__ >= 199901L
#define UNITY_SUPPORT_VARIADIC
#define UNITY_SUPPORT_VARIADIC
_MACROS
#endif
#endif
#endif
#endif
#ifdef UNITY_SUPPORT_VARIADIC_MACROS
#ifdef UNITY_SUPPORT_VARIADIC_MACROS
...
...
test/Makefile
浏览文件 @
368a7d89
...
@@ -13,13 +13,13 @@ CFLAGS += -Wbad-function-cast -Wcast-qual -Wold-style-definition -Wshadow -Wstri
...
@@ -13,13 +13,13 @@ CFLAGS += -Wbad-function-cast -Wcast-qual -Wold-style-definition -Wshadow -Wstri
-Wstrict-prototypes
-Wswitch-default
-Wundef
-Wstrict-prototypes
-Wswitch-default
-Wundef
#DEBUG = -O0 -g
#DEBUG = -O0 -g
CFLAGS
+=
$(DEBUG)
CFLAGS
+=
$(DEBUG)
UNITY_SUPPORT_64
=
-D
UNITY_SUPPORT_64
UNITY_INCLUDE_DOUBLE
=
-D
UNITY_INCLUDE_DOUBLE
DEFINES
=
-D
UNITY_OUTPUT_CHAR
=
putcharSpy
DEFINES
=
-D
UNITY_OUTPUT_CHAR
=
putcharSpy
DEFINES
+=
-D
UNITY_OUTPUT_CHAR_HEADER_DECLARATION
=
putcharSpy
\(
int
\)
DEFINES
+=
-D
UNITY_OUTPUT_CHAR_HEADER_DECLARATION
=
putcharSpy
\(
int
\)
DEFINES
+=
-D
UNITY_OUTPUT_FLUSH
=
flushSpy
DEFINES
+=
-D
UNITY_OUTPUT_FLUSH
=
flushSpy
DEFINES
+=
-D
UNITY_OUTPUT_FLUSH_HEADER_DECLARATION
=
flushSpy
\(
void
\)
DEFINES
+=
-D
UNITY_OUTPUT_FLUSH_HEADER_DECLARATION
=
flushSpy
\(
void
\)
DEFINES
+=
$(UNITY_SUPPORT_64)
$(UNITY_INCLUDE_DOUBLE)
DEFINES
+=
$(UNITY_SUPPORT_64)
$(UNITY_INCLUDE_DOUBLE)
UNITY_SUPPORT_64
=
-D
UNITY_SUPPORT_64
UNITY_INCLUDE_DOUBLE
=
-D
UNITY_INCLUDE_DOUBLE
SRC
=
../src/unity.c tests/testunity.c build/testunityRunner.c
SRC
=
../src/unity.c tests/testunity.c build/testunityRunner.c
INC_DIR
=
-I
../src
INC_DIR
=
-I
../src
COV_FLAGS
=
-fprofile-arcs
-ftest-coverage
-I
../../src
COV_FLAGS
=
-fprofile-arcs
-ftest-coverage
-I
../../src
...
@@ -30,7 +30,6 @@ TARGET = build/testunity-cov.exe
...
@@ -30,7 +30,6 @@ TARGET = build/testunity-cov.exe
# For verbose output of all the tests, run 'make test'.
# For verbose output of all the tests, run 'make test'.
default
:
coverage
default
:
coverage
.PHONY
:
default coverage test clean
.PHONY
:
default coverage test clean
coverage
:
DEFINES += -D UNITY_NO_WEAK
coverage
:
$(BUILD_DIR)/testunityRunner.c
coverage
:
$(BUILD_DIR)/testunityRunner.c
cd
$(BUILD_DIR)
&&
\
cd
$(BUILD_DIR)
&&
\
$(CC)
$(CFLAGS)
$(DEFINES)
$(
foreach
i,
$(SRC)
, ../
$i
)
$(COV_FLAGS)
-o
../
$(TARGET)
$(CC)
$(CFLAGS)
$(DEFINES)
$(
foreach
i,
$(SRC)
, ../
$i
)
$(COV_FLAGS)
-o
../
$(TARGET)
...
...
test/targets/ansi.yml
浏览文件 @
368a7d89
...
@@ -23,6 +23,7 @@ compiler:
...
@@ -23,6 +23,7 @@ compiler:
-
UNITY_INCLUDE_DOUBLE
-
UNITY_INCLUDE_DOUBLE
-
UNITY_SUPPORT_TEST_CASES
-
UNITY_SUPPORT_TEST_CASES
-
UNITY_EXCLUDE_TESTING_NEW_COMMENTS
-
UNITY_EXCLUDE_TESTING_NEW_COMMENTS
-
UNITY_SUPPORT_64
object_files
:
object_files
:
prefix
:
'
-o'
prefix
:
'
-o'
extension
:
'
.o'
extension
:
'
.o'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录