Tests: Make null pointer asserts abort the test

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2016-02-20 15:30:00 -08:00
parent 0f886b7d3a
commit 72cfdbb5f1
14 changed files with 109 additions and 110 deletions

View File

@@ -69,7 +69,7 @@ verify_persistent_reserve_access(struct scsi_device *sd1, struct scsi_device *sd
CU_ASSERT_EQUAL(0, ret);
read_write_buf = malloc(512); /* allocate a buffer */
CU_ASSERT_PTR_NOT_NULL(read_write_buf);
CU_ASSERT_PTR_NOT_NULL_FATAL(read_write_buf);
/* make sure init1 can read */
ret = verify_read_works(sd1, read_write_buf);