From 03f03ce518e533857aee74639d19ad0917aa2384 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 21 Jul 2013 14:21:16 -0700 Subject: [PATCH] TESTS: Inquiry is still allowed while SANITIZE is running --- test-tool/test_sanitize_reset.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test-tool/test_sanitize_reset.c b/test-tool/test_sanitize_reset.c index 8bb8f86..9000e70 100644 --- a/test-tool/test_sanitize_reset.c +++ b/test-tool/test_sanitize_reset.c @@ -88,6 +88,13 @@ test_sanitize_reset(void) ret = testunitready_sanitize(iscsic, tgt_lun); CU_ASSERT_EQUAL(ret, 0); + + logging(LOG_VERBOSE, "Verify that INQUIRY is still allowed while " + "SANITIZE is in progress"); + ret = inquiry(iscsic, tgt_lun, 0, 0, 255, NULL); + CU_ASSERT_EQUAL(ret, 0); + + logging(LOG_VERBOSE, "Send an ABORT TASK"); ret = iscsi_task_mgmt_abort_task_sync(iscsic, sanitize_task); if (ret != 0) {