TESTS: Add missing check for not supported : RECEIVE_COPY_RESULTS

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2015-08-02 12:37:07 -07:00
parent 0bb846c0f5
commit 3b8b42d976
3 changed files with 15 additions and 1 deletions

View File

@@ -66,6 +66,11 @@ test_extendedcopy_descr_limits(void)
logging(LOG_VERBOSE, "Issue RECEIVE COPY RESULTS (OPERATING PARAMS)");
ret = receive_copy_results(sd, SCSI_COPY_RESULTS_OP_PARAMS, 0,
(void **)&opp, EXPECT_STATUS_GOOD);
if (ret == -2) {
CU_PASS("[SKIPPED] Target does not support "
"RECEIVE_COPY_RESULTS. Skipping test");
return;
}
CU_ASSERT_EQUAL(ret, 0);
/* Allocate buffer to accommodate (MAX+1) target and