Spdk/test/unit/lib/iscsi
Jim Harris 56d35c5d13 test: forbid use of CU_ASSERT_FATAL
Static analyzers don't see CU_ASSERT_FATAL as truly fatal,
and will complain that code later in the function may try
to dereference a NULL pointer.  So we added SPDK_CU_ASSERT_FATAL
which should be used instead.

This still trips people up sometimes though - the static analyzer
complains and then the developer will add other checks that
pointers are not NULL.

So instead, forbid use of CU_ASSERT_FATAL through check_format.sh
and explain why.  While here, fix up all of the existing CU_ASSERT_FATAL
usages to either CU_ASSERT or SPDK_CU_ASSERT_FATAL.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I7974c8c85ddb89ed1b7d882db3a2eb0882ea0217

Reviewed-on: https://review.gerrithub.io/418111
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Seth Howell <seth.howell5141@gmail.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-07-06 18:35:03 +00:00
..
conn.c iscsi: Factor out copy scsi status when it is not good 2018-06-11 22:23:55 +00:00
init_grp.c iscsi: Add JSON config/info dump for initiator group. 2018-05-10 19:38:26 +00:00
iscsi.c test: forbid use of CU_ASSERT_FATAL 2018-07-06 18:35:03 +00:00
param.c iscsi: Change the type of some negotiation params from uint32_t to bool 2018-03-14 13:41:22 -04:00
portal_grp.c test: forbid use of CU_ASSERT_FATAL 2018-07-06 18:35:03 +00:00
tgt_node.c iscsi: Add JSON config/info dump for target node. 2018-05-04 17:45:48 +00:00
common.c net, iscsi: add struct spdk_sock abstraction 2018-02-12 12:30:39 -05:00
Makefile iscsi&iscsi/ut: Unify cpumask decode between iSCSI.conf and JSON-RPC 2018-01-19 15:47:57 -05:00