提交 ee5b408c 编写于 作者: H h00294133 提交者: public tcshversion

TicketNo:AR000DVNIO

Description:lite test framework
Team:OTHERS
Feature or Bugfix:Feature
Binary Source:NA
PrivateCode(Yes/No):No

Change-Id: Iaba36922f0556ca0a42b7c149e53d5e0f7eb68dd
Reviewed-on: http://mgit-tm.rnd.huawei.com/8090244Tested-by: Npublic jenkins <public_jenkins@notesmail.huawei.com>
Reviewed-by: Nwangjuntao 00221367 <wangjuntao.wang@huawei.com>
上级 2efd3242
source_set("test_unity") {
configs += [ "//build/lite/config:compile_liteos_m" ]
sources = [
"unity.c",
]
include_dirs = [
"//kernel/l1_m/liteos/components/lib/libsec/include",
"//vendor/huawei/watchgt/devkit/hal/include",
"//utils/include",
"//foundations/distributedschedule/interfaces/innerkits/samgr_lite/samgr",
"//foundations/communication/interfaces/innerkits/mpc_lite/transport",
"//foundations/communication/interfaces/innerkits/mpc_lite",
"//test/lite/testservice/include",
"//third_party/cJSON/tests/unity/src",
]
}
\ No newline at end of file
......@@ -7,7 +7,7 @@
#ifndef UNITY_INTERNALS_H
#define UNITY_INTERNALS_H
#include "../examples/unity_config.h"
#include "test_fwk.h"
#ifndef UNITY_EXCLUDE_SETJMP_H
#include <setjmp.h>
......@@ -241,7 +241,7 @@ typedef UNITY_FLOAT_TYPE UNITY_FLOAT;
#ifndef UNITY_OUTPUT_CHAR
/* Default to using putchar, which is defined in stdio.h */
#include <stdio.h>
#define UNITY_OUTPUT_CHAR(a) (void)putchar(a)
#define UNITY_OUTPUT_CHAR(a) LiteTestPrint("%c", a)
#else
/* If defined as something else, make sure we declare it here so it's ready for use */
#ifdef UNITY_OUTPUT_CHAR_HEADER_DECLARATION
......@@ -253,7 +253,7 @@ extern void UNITY_OUTPUT_CHAR_HEADER_DECLARATION;
#ifdef UNITY_USE_FLUSH_STDOUT
/* We want to use the stdout flush utility */
#include <stdio.h>
#define UNITY_OUTPUT_FLUSH() (void)fflush(stdout)
#define UNITY_OUTPUT_FLUSH() LiteTestPrint("")
#else
/* We've specified nothing, therefore flush should just be ignored */
#define UNITY_OUTPUT_FLUSH()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册