Test: add helpers for reserve6/release6

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2016-02-21 09:40:43 -08:00
parent 39d128db6d
commit 9afd4a4412
10 changed files with 55 additions and 96 deletions

View File

@@ -31,7 +31,7 @@
void
test_sanitize_reservations(void)
{
int ret;
int ret;
struct iscsi_data data;
struct scsi_command_descriptor *cd;
struct scsi_device *sd2;
@@ -58,9 +58,7 @@ test_sanitize_reservations(void)
logging(LOG_VERBOSE, "Take out a RESERVE6 from the second "
"initiator");
ret = reserve6(sd2);
CU_ASSERT_EQUAL(ret, 0);
RESERVE6(sd2);
logging(LOG_VERBOSE, "Check if SANITIZE OVERWRITE is supported "
"in REPORT_SUPPORTED_OPCODES");