Spdk/test/lib
Daniel Verkamp 0d6f812c8f test/event/subsystem: ensure i stays in range
Assert that the number of subsystems doesn't become negative in
subsystem_sort_test_depends_on_single().

This also fixes a GCC 7 warning about a possible snprintf() truncation
now that the range of i is known to be [1,4].

Change-Id: Idaf8ceab149ff5d786f614f790a8706cae759d38
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/363496
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-06-02 19:49:43 -04:00
..
bdev bdev: Remove reset_type 2017-06-02 12:02:53 -04:00
blob io_channel: Add a message passing callback 2017-05-26 13:42:19 -04:00
blobfs ut/blobfs: fix compilation error 2017-05-31 11:30:03 -04:00
env env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00
event test/event/subsystem: ensure i stays in range 2017-06-02 19:49:43 -04:00
ioat env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00
iscsi scsi: Set proper transport protocol id 2017-06-01 12:10:22 -04:00
json test/json_util: add string decode tests. 2017-05-31 17:54:20 -04:00
jsonrpc include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
log include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
nvme env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00
nvmf nvmf: add public API to get subsystem serial number 2017-06-01 19:43:45 -04:00
scsi bdev: Remove reset_type 2017-06-02 12:02:53 -04:00
util env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00
Makefile test/iscsi: build iSCSI unit tests on FreeBSD 2017-03-29 15:27:50 -07:00
test_env.c env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00