Message ID | 20190221062851.21958-27-andrew@aj.id.au |
---|---|
State | Accepted |
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 444lB50Phyz9s4Y for <incoming@patchwork.ozlabs.org>; Thu, 21 Feb 2019 17:36:45 +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="VpEY2C1n"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="LS72jUJ1"; 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 444lB468qtzDqSf for <incoming@patchwork.ozlabs.org>; Thu, 21 Feb 2019 17:36:44 +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="VpEY2C1n"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="LS72jUJ1"; 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 444l2X5q8pzDqNQ for <skiboot@lists.ozlabs.org>; Thu, 21 Feb 2019 17:30:12 +1100 (AEDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8E23F222B3; Thu, 21 Feb 2019 01:30:10 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 21 Feb 2019 01:30:10 -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=uAa9usPjdTPUK 7LOoyLdAPMo+esNOeW+nDb7d8mQ9tk=; b=VpEY2C1nPgtz8YDICHniJY2/M1BuU d9W6S55asyRa8gdQl6EVDLaG3/8VzlvG58j+bErr6xNHtrI2AFuEpFXx+cRkoNsX QR/MkT9KcXm1citgWzpUt7vKFoHj4x7nXXbx/V60UaawUldiAjmS/J83biHNQjtN x26HQKPSbwgiQuAVkt14Bnhf3eXtQHS/UYLoxWz80/a9hS7uuaVlEo4RX4R6RvnX Gt6bH0xb2jEx7k79kk9KfK2Nvr9IPejC7JQxVng+akbt2tJAO/LZ5n19SbE9lQsV mZODRH21KwEA/Qypq2GWkYmNQIKJNstW9JNFqQ3E2i4NvjMdV+svLUOzw== 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=uAa9usPjdTPUK7LOoyLdAPMo+esNOeW+nDb7d8mQ9tk=; b=LS72jUJ1 lBn/jNOnVMO+/GBmjG9NfJsBGsg5jsELZNkqTpwZL3zwQxYKdpBYar1T/tD8sOd0 6ZqNev28Zh7ZC3WQH4A5YuGURa5yrXMI4aClI8k7GOavYGwrkNxJMxEwytB3eNhx HpiFY1GSGpBW79Kz6LD+WMiqAAQsXU/LASZB2VHF8jlt4bbIPZZnzUPACapOcty1 AciZVuiZQ/I4B4rdyQp/rrHX/z3X/E6wKa13RGUwLYJqOsUEK/EWfOqXPHzMdHoU U7dY5A28FeVfp3h/bwRlCk8MXPZCWc9LwUbmMnG8EvFuB8y1LXt4UgYZmhfb82qo +MuDdhBbkla68w== X-ME-Sender: <xms:ckVuXOYFmpg4N3HrrWAJDhQQ0bylf11dOMDQBP8GSsvjC5-bNRwspA> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrtdejgdeljeculddtuddrgedtledrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehnughrvgifucflvghffhgvrhihuceorghnughrvgifsegr jhdrihgurdgruheqnecukfhppedvtddvrdekuddrudekrddvkeenucfrrghrrghmpehmrg hilhhfrhhomheprghnughrvgifsegrjhdrihgurdgruhenucevlhhushhtvghrufhiiigv pedvvd X-ME-Proxy: <xmx:ckVuXIp0YAYh3sFmLfsZbc06gqydPGI1TWaJy6pYQWRQ6EZuAKXQLg> <xmx:ckVuXD3ifau5Ll2vpaX5AV1NrrDpwfZJapZagDTjvZElFadhq9klXQ> <xmx:ckVuXAmqgrOUWnZY8gAhE_lBbJqEsjekkZx5rJe56IANpcgClHHF7A> <xmx:ckVuXDov3yf7MJ-COtpEsGt4pvulSI1dLWP4dm3OG3FeLMWeOO6L3Q> Received: from mistburn.bha-au.ibmmobiledemo.com (unknown [202.81.18.28]) by mail.messagingengine.com (Postfix) with ESMTPA id A2EB1E461F; Thu, 21 Feb 2019 01:30:08 -0500 (EST) From: Andrew Jeffery <andrew@aj.id.au> To: skiboot@lists.ozlabs.org Date: Thu, 21 Feb 2019 16:58:25 +1030 Message-Id: <20190221062851.21958-27-andrew@aj.id.au> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190221062851.21958-1-andrew@aj.id.au> References: <20190221062851.21958-1-andrew@aj.id.au> MIME-Version: 1.0 Subject: [Skiboot] [PATCH v2 26/52] test-ipmi-hiomap: Add event-before-erase 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
|
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | master/apply_patch Successfully applied |
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot | success | Test snowpatch/job/snowpatch-skiboot on branch master |
diff --git a/libflash/test/test-ipmi-hiomap.c b/libflash/test/test-ipmi-hiomap.c index 99b2902b6446..c00c30f6d4aa 100644 --- a/libflash/test/test-ipmi-hiomap.c +++ b/libflash/test/test-ipmi-hiomap.c @@ -1243,6 +1243,23 @@ static void test_hiomap_protocol_erase_one_block(void) scenario_exit(); } +static void test_hiomap_protocol_event_before_erase(void) +{ + struct blocklevel_device *bl; + struct ipmi_hiomap *ctx; + size_t len; + int rc; + + scenario_enter(scenario_hiomap_protocol_event_before_action); + assert(!ipmi_hiomap_init(&bl)); + ctx = container_of(bl, struct ipmi_hiomap, bl); + len = 1 << ctx->block_size_shift; + rc = bl->erase(bl, 0, len); + 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, }, @@ -1296,6 +1313,7 @@ struct test_case test_cases[] = { TEST_CASE(test_hiomap_protocol_event_during_write), TEST_CASE(test_hiomap_protocol_erase_one_block), TEST_CASE(test_hiomap_protocol_erase_two_blocks), + TEST_CASE(test_hiomap_protocol_event_before_erase), TEST_CASE(test_hiomap_protocol_persistent_error), { NULL, NULL }, };
Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> --- libflash/test/test-ipmi-hiomap.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)