Tests: convert tabs to 8 spaces
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -29,54 +29,54 @@
|
||||
void
|
||||
test_startstopunit_simple(void)
|
||||
{
|
||||
int ret;
|
||||
int ret;
|
||||
|
||||
logging(LOG_VERBOSE, LOG_BLANK_LINE);
|
||||
logging(LOG_VERBOSE, "Test basic STARTSTOPUNIT");
|
||||
logging(LOG_VERBOSE, LOG_BLANK_LINE);
|
||||
logging(LOG_VERBOSE, "Test basic STARTSTOPUNIT");
|
||||
|
||||
|
||||
logging(LOG_VERBOSE, "Test we can eject removable the media with IMMED==1");
|
||||
if (inq->rmb) {
|
||||
logging(LOG_VERBOSE, "Media is removable. STARTSTOPUNIT should work");
|
||||
} else {
|
||||
logging(LOG_VERBOSE, "Media is not removable. STARTSTOPUNIT should fail");
|
||||
}
|
||||
logging(LOG_VERBOSE, "Test we can eject removable the media with IMMED==1");
|
||||
if (inq->rmb) {
|
||||
logging(LOG_VERBOSE, "Media is removable. STARTSTOPUNIT should work");
|
||||
} else {
|
||||
logging(LOG_VERBOSE, "Media is not removable. STARTSTOPUNIT should fail");
|
||||
}
|
||||
|
||||
ret = startstopunit(sd, 1, 0, 0, 0, 1, 0,
|
||||
EXPECT_STATUS_GOOD);
|
||||
if (!inq->rmb) {
|
||||
CU_ASSERT_NOT_EQUAL(ret, 0);
|
||||
return;
|
||||
}
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
ret = startstopunit(sd, 1, 0, 0, 0, 1, 0,
|
||||
EXPECT_STATUS_GOOD);
|
||||
if (!inq->rmb) {
|
||||
CU_ASSERT_NOT_EQUAL(ret, 0);
|
||||
return;
|
||||
}
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
|
||||
|
||||
logging(LOG_VERBOSE, "Test TESTUNITREADY that medium is ejected.");
|
||||
TESTUNITREADY(sd,
|
||||
logging(LOG_VERBOSE, "Test TESTUNITREADY that medium is ejected.");
|
||||
TESTUNITREADY(sd,
|
||||
EXPECT_NO_MEDIUM);
|
||||
|
||||
logging(LOG_VERBOSE, "Test we can load the removable the media with IMMED==1");
|
||||
STARTSTOPUNIT(sd, 1, 0, 0, 0, 1, 1,
|
||||
logging(LOG_VERBOSE, "Test we can load the removable the media with IMMED==1");
|
||||
STARTSTOPUNIT(sd, 1, 0, 0, 0, 1, 1,
|
||||
EXPECT_STATUS_GOOD);
|
||||
|
||||
logging(LOG_VERBOSE, "Verify we can read from the media.");
|
||||
TESTUNITREADY(sd,
|
||||
logging(LOG_VERBOSE, "Verify we can read from the media.");
|
||||
TESTUNITREADY(sd,
|
||||
EXPECT_SANITIZE);
|
||||
|
||||
logging(LOG_VERBOSE, "Test we can eject removable the media with IMMED==1");
|
||||
STARTSTOPUNIT(sd, 0, 0, 0, 0, 1, 0,
|
||||
logging(LOG_VERBOSE, "Test we can eject removable the media with IMMED==1");
|
||||
STARTSTOPUNIT(sd, 0, 0, 0, 0, 1, 0,
|
||||
EXPECT_STATUS_GOOD);
|
||||
|
||||
logging(LOG_VERBOSE, "Test TESTUNITREADY that medium is ejected.");
|
||||
TESTUNITREADY(sd,
|
||||
logging(LOG_VERBOSE, "Test TESTUNITREADY that medium is ejected.");
|
||||
TESTUNITREADY(sd,
|
||||
EXPECT_NO_MEDIUM);
|
||||
|
||||
|
||||
logging(LOG_VERBOSE, "Test we can load the removable the media with IMMED==1");
|
||||
STARTSTOPUNIT(sd, 0, 0, 0, 0, 1, 1,
|
||||
logging(LOG_VERBOSE, "Test we can load the removable the media with IMMED==1");
|
||||
STARTSTOPUNIT(sd, 0, 0, 0, 0, 1, 1,
|
||||
EXPECT_STATUS_GOOD);
|
||||
|
||||
logging(LOG_VERBOSE, "Verify we can access the media again.");
|
||||
TESTUNITREADY(sd,
|
||||
logging(LOG_VERBOSE, "Verify we can access the media again.");
|
||||
TESTUNITREADY(sd,
|
||||
EXPECT_SANITIZE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user