test/env: add UNIT_TEST_NO_PCI_ADDR
Similar to UNIT_TEST_NO_VTOPHYS, we need this since a future patch will result in some of the pci_addr functions getting linked in via a new dependency between memory.c and init.c. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I61bd4e172ee70a5dcb99c8c6fc1fb19070a2a7cd Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/446460 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
725f9de39a
commit
577b667ac3
@ -436,6 +436,7 @@ spdk_delay_us(unsigned int us)
|
||||
ut_spdk_get_ticks += us;
|
||||
}
|
||||
|
||||
#ifndef UNIT_TEST_NO_PCI_ADDR
|
||||
DEFINE_RETURN_MOCK(spdk_pci_addr_parse, int);
|
||||
int
|
||||
spdk_pci_addr_parse(struct spdk_pci_addr *addr, const char *bdf)
|
||||
@ -521,3 +522,4 @@ spdk_pci_addr_compare(const struct spdk_pci_addr *a1, const struct spdk_pci_addr
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
1
test/env/memory/memory_ut.c
vendored
1
test/env/memory/memory_ut.c
vendored
@ -34,6 +34,7 @@
|
||||
#include "env_dpdk/memory.c"
|
||||
|
||||
#define UNIT_TEST_NO_VTOPHYS
|
||||
#define UNIT_TEST_NO_PCI_ADDR
|
||||
#include "common/lib/test_env.c"
|
||||
#include "spdk_cunit.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user