TESTS: change testunitready to new api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
This commit is contained in:
Ronnie Sahlberg
2014-09-17 14:13:14 -07:00
committed by Ronnie Sahlberg
parent fe11a6178b
commit 3ee3964332
18 changed files with 87 additions and 150 deletions

View File

@@ -52,7 +52,8 @@ test_startstopunit_simple(void)
logging(LOG_VERBOSE, "Test TESTUNITREADY that medium is ejected.");
ret = testunitready_nomedium(iscsic, tgt_lun);
ret = testunitready(iscsic, tgt_lun,
EXPECT_NO_MEDIUM);
CU_ASSERT_EQUAL(ret, 0);
@@ -63,7 +64,8 @@ test_startstopunit_simple(void)
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Verify we can read from the media.");
ret = testunitready(iscsic, tgt_lun);
ret = testunitready(iscsic, tgt_lun,
EXPECT_SANITIZE);
CU_ASSERT_EQUAL(ret, 0);
@@ -76,7 +78,8 @@ test_startstopunit_simple(void)
logging(LOG_VERBOSE, "Test TESTUNITREADY that medium is ejected.");
ret = testunitready_nomedium(iscsic, tgt_lun);
ret = testunitready(iscsic, tgt_lun,
EXPECT_NO_MEDIUM);
CU_ASSERT_EQUAL(ret, 0);
@@ -87,6 +90,7 @@ test_startstopunit_simple(void)
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Verify we can access the media again.");
ret = testunitready(iscsic, tgt_lun);
ret = testunitready(iscsic, tgt_lun,
EXPECT_SANITIZE);
CU_ASSERT_EQUAL(ret, 0);
}