test: Include test_env.c in several unit tests

These tests don't currently require the env mockup,
but they will in a future patch.

Change-Id: Ibf311f198a291f825a83e7b89708cd2442f35f7a
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/423183
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Ben Walker 2018-08-22 17:01:28 -07:00 committed by Jim Harris
parent e6bbe23277
commit 9e132fbc90
3 changed files with 3 additions and 10 deletions

View File

@ -33,6 +33,7 @@
#include "spdk/stdinc.h" #include "spdk/stdinc.h"
#include "common/lib/test_env.c"
#include "spdk_cunit.h" #include "spdk_cunit.h"
#include "iscsi/conn.c" #include "iscsi/conn.c"
@ -74,16 +75,6 @@ spdk_env_get_next_core(uint32_t prev_core)
return 0; return 0;
} }
uint64_t spdk_get_ticks(void)
{
return 0;
}
uint64_t spdk_get_ticks_hz(void)
{
return 0;
}
struct spdk_event * struct spdk_event *
spdk_event_allocate(uint32_t lcore, spdk_event_fn fn, void *arg1, void *arg2) spdk_event_allocate(uint32_t lcore, spdk_event_fn fn, void *arg1, void *arg2)
{ {

View File

@ -36,6 +36,7 @@
#include "spdk_cunit.h" #include "spdk_cunit.h"
#include "spdk_internal/mock.h" #include "spdk_internal/mock.h"
#include "common/lib/test_env.c"
#include "nvmf/ctrlr_discovery.c" #include "nvmf/ctrlr_discovery.c"
#include "nvmf/subsystem.c" #include "nvmf/subsystem.c"

View File

@ -33,6 +33,7 @@
#include "spdk/stdinc.h" #include "spdk/stdinc.h"
#include "common/lib/test_env.c"
#include "spdk_cunit.h" #include "spdk_cunit.h"
#include "spdk_internal/mock.h" #include "spdk_internal/mock.h"