TESTS: cleanup and remove noise warnings for iscsi cmdsn tests
The iscsi cmdsn tests are noisy and generate a lot of [FAILURE] warnings for things that are expected. Fix this by do the plumbing to allow using a EXPECT_STATUS_TIMEOUT for commands we expect will never be replied to and will thus time out. Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -74,9 +74,9 @@ void test_iscsi_cmdsn_toolow(void)
|
||||
iscsi_set_timeout(sd->iscsi_ctx, 3);
|
||||
|
||||
ret = testunitready(sd,
|
||||
EXPECT_STATUS_GOOD);
|
||||
CU_ASSERT_EQUAL(ret, -1);
|
||||
if (ret == -1) {
|
||||
EXPECT_STATUS_TIMEOUT);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
if (ret == 0) {
|
||||
logging(LOG_VERBOSE, "[SUCCESS] We did not receive a reply");
|
||||
} else {
|
||||
logging(LOG_VERBOSE, "[FAILURE] We got a response from the target but SMDSN was outside of the window.");
|
||||
|
||||
Reference in New Issue
Block a user