UT framerwok: Auto generating wrap functions
Test code have to contain wraps only for those functions, which are used by test itself. Empty wraps are generated automatically by UT framework. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "../utils/utils_refcnt.h"
|
||||
|
||||
#include "utils/utils_refcnt.c/utils_refcnt_dec_generated_warps.c"
|
||||
|
||||
static void ocf_refcnt_dec_test01(void **state)
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "../utils/utils_refcnt.h"
|
||||
|
||||
#include "utils/utils_refcnt.c/utils_refcnt_freeze_generated_warps.c"
|
||||
|
||||
static void ocf_refcnt_freeze_test01(void **state)
|
||||
{
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "../utils/utils_refcnt.h"
|
||||
|
||||
#include "utils/utils_refcnt.c/utils_refcnt_inc_generated_warps.c"
|
||||
|
||||
static void ocf_refcnt_inc_test(void **state)
|
||||
{
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "../utils/utils_refcnt.h"
|
||||
|
||||
#include "utils/utils_refcnt.c/utils_refcnt_init_generated_warps.c"
|
||||
|
||||
static void ocf_refcnt_init_test(void **state)
|
||||
{
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
#include "../utils/utils_refcnt.h"
|
||||
|
||||
#include "utils/utils_refcnt.c/utils_refcnt_register_zero_cb_generated_warps.c"
|
||||
|
||||
static void zero_cb(void *ctx)
|
||||
{
|
||||
function_called();
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "../utils/utils_refcnt.h"
|
||||
|
||||
#include "utils/utils_refcnt.c/utils_refcnt_unfreeze_generated_warps.c"
|
||||
|
||||
static void ocf_refcnt_unfreeze_test01(void **state)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user