TESTS: update synchronizecache to new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
This commit is contained in:
Ronnie Sahlberg
2014-09-17 14:27:00 -07:00
committed by Ronnie Sahlberg
parent 1c14b9b911
commit 44d88e3bc6
3 changed files with 33 additions and 147 deletions

View File

@@ -53,7 +53,8 @@ test_nomedia_sbc(void)
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test SYNCHRONIZECACHE10 when medium is ejected.");
ret = synchronizecache10_nomedium(iscsic, tgt_lun, 0, 1, 1, 1);
ret = synchronizecache10(iscsic, tgt_lun, 0, 1, 1, 1,
EXPECT_NO_MEDIUM);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] target does not support "
"SYNCHRONIZECACHE10");
@@ -62,7 +63,8 @@ test_nomedia_sbc(void)
}
logging(LOG_VERBOSE, "Test SYNCHRONIZECACHE16 when medium is ejected.");
ret = synchronizecache16_nomedium(iscsic, tgt_lun, 0, 1, 1, 1);
ret = synchronizecache16(iscsic, tgt_lun, 0, 1, 1, 1,
EXPECT_NO_MEDIUM);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] target does not support "
"SYNCHRONIZECACHE16");