Projects
Eulaceura:Factory
libiscsi
_service:obs_scm:0011-test-tool-OverwriteReserv...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0011-test-tool-OverwriteReserved-skip-unless-iSCSI.patch of Package libiscsi
From e5cc079e7c2678997b3aa157331ebf34c8b10932 Mon Sep 17 00:00:00 2001 From: David Disseldorp <ddiss@suse.de> Date: Mon, 16 Sep 2019 15:40:00 +0200 Subject: [PATCH 10/12] test-tool/OverwriteReserved: skip unless iSCSI This test performs PDU manipulation so should only be run against iSCSI devices. Signed-off-by: David Disseldorp <ddiss@suse.de> --- test-tool/test_sanitize_overwrite_reserved.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test-tool/test_sanitize_overwrite_reserved.c b/test-tool/test_sanitize_overwrite_reserved.c index 20a0779..79f8a92 100644 --- a/test-tool/test_sanitize_overwrite_reserved.c +++ b/test-tool/test_sanitize_overwrite_reserved.c @@ -67,6 +67,13 @@ void test_sanitize_overwrite_reserved(void) CHECK_FOR_SANITIZE; CHECK_FOR_DATALOSS; + if (sd->iscsi_ctx == NULL) { + const char *err = "[SKIPPED] This test is " + "only supported for iSCSI backends"; + logging(LOG_NORMAL, "%s", err); + CU_PASS(err); + return; + } local_iscsi_queue_pdu = my_iscsi_queue_pdu; -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2