test/common: Set invalid value to CPU core API stubs
This change verifies that all existing unit tests don't care about CPU core configuration. The subsequent patches will mock CPU core operations. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I44cc56908cf8609870625ff19d6100e21036c00f Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478152 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
b2927bedea
commit
46e52a0bcb
@ -44,11 +44,11 @@ DEFINE_STUB(spdk_memzone_lookup, void *, (const char *name), NULL)
|
|||||||
DEFINE_STUB(spdk_pci_nvme_get_driver, struct spdk_pci_driver *, (void), NULL)
|
DEFINE_STUB(spdk_pci_nvme_get_driver, struct spdk_pci_driver *, (void), NULL)
|
||||||
DEFINE_STUB(spdk_pci_ioat_get_driver, struct spdk_pci_driver *, (void), NULL)
|
DEFINE_STUB(spdk_pci_ioat_get_driver, struct spdk_pci_driver *, (void), NULL)
|
||||||
DEFINE_STUB(spdk_pci_virtio_get_driver, struct spdk_pci_driver *, (void), NULL)
|
DEFINE_STUB(spdk_pci_virtio_get_driver, struct spdk_pci_driver *, (void), NULL)
|
||||||
DEFINE_STUB(spdk_env_get_first_core, uint32_t, (void), 0);
|
DEFINE_STUB(spdk_env_get_first_core, uint32_t, (void), UINT32_MAX);
|
||||||
DEFINE_STUB(spdk_env_get_next_core, uint32_t, (uint32_t prev_core), 0);
|
DEFINE_STUB(spdk_env_get_next_core, uint32_t, (uint32_t prev_core), UINT32_MAX);
|
||||||
DEFINE_STUB(spdk_env_get_last_core, uint32_t, (void), 1);
|
DEFINE_STUB(spdk_env_get_last_core, uint32_t, (void), UINT32_MAX);
|
||||||
DEFINE_STUB(spdk_env_get_current_core, uint32_t, (void), 0);
|
DEFINE_STUB(spdk_env_get_current_core, uint32_t, (void), UINT32_MAX);
|
||||||
DEFINE_STUB(spdk_env_get_socket_id, uint32_t, (uint32_t core), 0);
|
DEFINE_STUB(spdk_env_get_socket_id, uint32_t, (uint32_t core), SPDK_ENV_SOCKET_ID_ANY);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These mocks don't use the DEFINE_STUB macros because
|
* These mocks don't use the DEFINE_STUB macros because
|
||||||
|
Loading…
Reference in New Issue
Block a user