Spdk/test/unit/lib
tone.zhang 88ddf0f22e UT: fix the sock_ut failure because of the port conflict
In SPDK sock_ut, the port 3260 is tested. It is conflict with the SCSI
Target Daemon (tgtd). If the service is enabled, it makes sock_ut failure.

Suite: sock
  Test: posix_sock .../home/ubuntu/spdk/lib/sock/posix/posix.c: 238:spdk_posix_sock_create: *ERROR*: bind() failed errno = 98
FAILED

The patch changes port 3260 to UT_PORT, and enhance the error log when
socket bind is failed.

Also enhance error log carrying port value in posix.c.

Change-Id: I31e47af49335cdf7eaffa44237860ebc140d2419
Signed-off-by: tone.zhang <tone.zhang@arm.com>
Reviewed-on: https://review.gerrithub.io/c/439983
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-01-22 17:28:24 +00:00
..
bdev histograms: add unit tests for public bdev api 2019-01-22 17:06:52 +00:00
blob thread: Simplify two unit tests with nested poll calls 2019-01-21 13:54:46 +00:00
blobfs thread: Simplify two unit tests with nested poll calls 2019-01-21 13:54:46 +00:00
event parse: add return value to app_parse callback 2019-01-18 10:08:09 +00:00
ioat pci: remove ioat-specific attach functions 2018-12-07 17:24:19 +00:00
iscsi build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
json json: add utilities function enabling itaration over JSON object 2018-10-18 16:07:37 +00:00
jsonrpc jsonrpc: fix received JSON buffer overwrite 2019-01-10 14:31:37 +00:00
log build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
lvol lvol: exposed marking lvol bdev as read only 2019-01-18 19:02:36 +00:00
nvme test/unit: remove unnecessary mock definitions 2019-01-13 00:48:20 +00:00
nvmf nvmf/tcp: Use the common buffer cache for each polling group 2019-01-18 19:21:58 +00:00
reduce reduce: remove close callback 2019-01-16 22:25:13 +00:00
scsi thread: Rename spdk_thread_msg to spdk_msg_fn 2018-12-18 23:31:08 +00:00
sock UT: fix the sock_ut failure because of the port conflict 2019-01-22 17:28:24 +00:00
thread thread: Rename spdk_free_thread to spdk_thread_exit 2019-01-17 11:24:38 +00:00
util dif: Fix opposite definition of DIF location parameter from SPDK NVMe API 2019-01-17 17:12:01 +00:00
vhost test/unit: remove unnecessary mock definitions 2019-01-13 00:48:20 +00:00
json_mock.c subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
Makefile reduce: add configure option 2018-11-08 00:01:47 +00:00