Message ID | 20190215065708.6086-21-andrew@aj.id.au |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44144D3Gl1z9s7h for <incoming@patchwork.ozlabs.org>; Fri, 15 Feb 2019 18:03:56 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aj.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.b="cgtn+c/f"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="6mpDicRa"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 44144D1sHJzDqdZ for <incoming@patchwork.ozlabs.org>; Fri, 15 Feb 2019 18:03:56 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=aj.id.au (client-ip=66.111.4.26; helo=out2-smtp.messagingengine.com; envelope-from=andrew@aj.id.au; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=aj.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.b="cgtn+c/f"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="6mpDicRa"; dkim-atps=neutral Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4413xn5bJ0zDqTX for <skiboot@lists.ozlabs.org>; Fri, 15 Feb 2019 17:58:21 +1100 (AEDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8D0BF22471; Fri, 15 Feb 2019 01:58:19 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 15 Feb 2019 01:58:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=FFsrZ6absgRV2 vXcB0GIck7YcfdD5O0pJH+70Ac7Vyw=; b=cgtn+c/fLtpWq3+7f4bE6I4mlFP1H j0aUDqOX8ENyBxsz4MIR3xyZIo3uNejqgsgJaR/JOABiKRQHEFp12YdAf4D1mRMP BklJK/eeCAPJ585MmGpVKyH/Ea2HiJcRTPUThbfNkjAbmrEW6bcq+w5A3Y+2XloO Ia8RXilUEzsEvLRgeL+6jIdPVI+4U8P74lkSPeXFxgcg9C6NCt166d9fQWrsXhnM XnzD7MhgkXxeLZxrzWxD6vBQmmHwFKLO8Awqp28NxXYYq/D51GI/6AVENGw+ErLP yha57u8JOOEEt3krUh+bTKdxOWS/toogLPePr7HtsVA3Qq0UfUuVpVksA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=FFsrZ6absgRV2vXcB0GIck7YcfdD5O0pJH+70Ac7Vyw=; b=6mpDicRa VpR2omw7zrJTKSTyJtMY0FVlw+R0xR99Vwhacv92E2hFWmDpfHRhirxoWqzTJWTM IKeiP5J86YySLjw6P5VN9TU94gSldvksTHqNmJqopVhebNI2772ETmFVFbRVzOQk 3FgruywZg36UKciO0vLagi+m171JnDS8StXd/EQlMn6n9suXIvM40bcf3i3Fzj+V 289YE8gajmJ65x1qGrvJnF0YHACTtm3PIM3HKWbHekCQvsuA+lOENryXQqifao11 i1egAq7ZFfiouTL/lFv7gBDlM8iGnrXUqsYRdVkt+K1QYdrzbVeiur69K3vjrbBQ jRI1KC1zVHAfdg== X-ME-Sender: <xms:C2NmXArEtC146FJKeNhrtaAXtWC9NuF6x72vE18zO5wPWt6GTOLIcQ> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledruddtiedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpe etnhgurhgvficulfgvfhhfvghrhicuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucfk phepudegrddvrdekledrjeehnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvfi esrghjrdhiugdrrghunecuvehluhhsthgvrhfuihiivgepudeh X-ME-Proxy: <xmx:C2NmXDhJbsom_8PdQ6gjqxS78vuTP7M_9fsl_q5gPZ7TGrikddT9tw> <xmx:C2NmXE8y6mMFtC2x7FR5hVSAnQlaycxS-BBxYT5DImFmlfgt_E3qpQ> <xmx:C2NmXHWVPlgXOyvWHYm2TYFiJYmlViSieZnZrRuiWS3BZ_KP7crqRQ> <xmx:C2NmXLSa-QqqDalRV_fJYD4b9-jT0D3fq662Cd_SFlzUawfNUkySzw> Received: from localhost.localdomain (unknown [14.2.89.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 90B6EE4438; Fri, 15 Feb 2019 01:58:17 -0500 (EST) From: Andrew Jeffery <andrew@aj.id.au> To: skiboot@lists.ozlabs.org Date: Fri, 15 Feb 2019 17:26:37 +1030 Message-Id: <20190215065708.6086-21-andrew@aj.id.au> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215065708.6086-1-andrew@aj.id.au> References: <20190215065708.6086-1-andrew@aj.id.au> MIME-Version: 1.0 Subject: [Skiboot] [PATCH 20/51] test-ipmi-hiomap: Add event-before-write test X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development <skiboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/skiboot/> List-Post: <mailto:skiboot@lists.ozlabs.org> List-Help: <mailto:skiboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=subscribe> Cc: Andrew Jeffery <andrew@aj.id.au> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
ipmi-hiomap: Tests and fixes for event handling
|
expand
|
diff --git a/libflash/test/test-ipmi-hiomap.c b/libflash/test/test-ipmi-hiomap.c index 0902fbf2eda6..34afef584be4 100644 --- a/libflash/test/test-ipmi-hiomap.c +++ b/libflash/test/test-ipmi-hiomap.c @@ -1073,6 +1073,20 @@ static void test_hiomap_protocol_write_two_blocks(void) scenario_exit(); } +static void test_hiomap_protocol_event_before_write(void) +{ + struct blocklevel_device *bl; + char buf; + int rc; + + scenario_enter(scenario_hiomap_protocol_event_before_action); + assert(!ipmi_hiomap_init(&bl)); + rc = bl->write(bl, 0, &buf, sizeof(buf)); + assert(rc == FLASH_ERR_AGAIN); + ipmi_hiomap_exit(bl); + scenario_exit(); +} + static const struct scenario_event scenario_hiomap_protocol_persistent_error[] = { { .type = scenario_event_p, .p = &hiomap_ack_call, }, @@ -1122,6 +1136,7 @@ struct test_case test_cases[] = { TEST_CASE(test_hiomap_protocol_event_during_read), TEST_CASE(test_hiomap_protocol_write_one_block), TEST_CASE(test_hiomap_protocol_write_two_blocks), + TEST_CASE(test_hiomap_protocol_event_before_write), TEST_CASE(test_hiomap_protocol_persistent_error), { NULL, NULL }, };
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> --- libflash/test/test-ipmi-hiomap.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)