Tests: convert tabs to 8 spaces

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2016-02-21 16:17:18 -08:00
parent 5a80c7b581
commit b4320bd76c
215 changed files with 13344 additions and 13344 deletions

View File

@@ -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);
}