Tests: Add helpers fro preventallow/startstopunit
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -41,10 +41,8 @@ test_startstopunit_pwrcnd(void)
|
||||
|
||||
logging(LOG_VERBOSE, "Test that media is not ejected when PC!=0");
|
||||
for (i = 1; i < 16; i++) {
|
||||
ret = startstopunit(sd,
|
||||
1, 0, i, 0, 1, 0,
|
||||
EXPECT_STATUS_GOOD);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
STARTSTOPUNIT(sd, 1, 0, i, 0, 1, 0,
|
||||
EXPECT_STATUS_GOOD);
|
||||
|
||||
logging(LOG_VERBOSE, "Test TESTUNITREADY that medium is not ejected.");
|
||||
ret = testunitready(sd,
|
||||
@@ -53,6 +51,6 @@ test_startstopunit_pwrcnd(void)
|
||||
}
|
||||
|
||||
logging(LOG_VERBOSE, "In case the target did eject the medium, load it again.");
|
||||
startstopunit(sd, 1, 0, 0, 0, 1, 1,
|
||||
STARTSTOPUNIT(sd, 1, 0, 0, 0, 1, 1,
|
||||
EXPECT_STATUS_GOOD);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user