From nobody Tue Feb 10 08:03:31 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1646920033407547.2765032830025; Thu, 10 Mar 2022 05:47:13 -0800 (PST) Received: from localhost ([::1]:49748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSJ8J-0006Ya-DW for importer@patchew.org; Thu, 10 Mar 2022 08:47:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSI9l-0006lp-4I; Thu, 10 Mar 2022 07:44:38 -0500 Received: from [2a00:1450:4864:20::42d] (port=36527 helo=mail-wr1-x42d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSI9j-0005D5-1b; Thu, 10 Mar 2022 07:44:36 -0500 Received: by mail-wr1-x42d.google.com with SMTP id r10so7798767wrp.3; Thu, 10 Mar 2022 04:44:34 -0800 (PST) Received: from avogadro.lan ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id r188-20020a1c2bc5000000b00387c81c32e7sm8063026wmr.8.2022.03.10.04.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 04:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cKdtK321kFLCliuzyUSsNRmQeNups2GRo/9a3WM2ZiQ=; b=N2O/N0AlcFa0juxfh1qhJeS2JZct9UqxPtNbL+Dz8axsniwxGu6Tgws0JQqyKdFSSH 0r61BhSVxyoJdp+EGuDr30Nypr4ln2ofyF7FsaC0mL4MQWl4J8Iywo3WUXO5GGJ+7xEp 2W9g+AQrzQ/MizT5kcL/HMI5B4TExXWhVx4pq7lnTwemanqUqu5/n/Pc04FhHXAXUE31 ENSUDyuSwxfQF2TBWNS4MtM68iWEveydhtuFMy0jrbXpsZYfAc5Pk8uEZjYTJtk5kHv2 IQLAqq2iaREloj77DBg+CDIDVHG3m+R0a/tAuVY6PuPbhXd6ZaqHSyxtOdIckUno5bOh FiRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=cKdtK321kFLCliuzyUSsNRmQeNups2GRo/9a3WM2ZiQ=; b=AqWg7uD1MgqQk1GJtrrlUuQhhQmHxjX1ItVq7ZxH7fjFX4sNJ65YWs80zeR98y2GBq XEjIJw+61YHSW+JSOzpNOIOmPk0s5AONd4gHxpcE7D5ThNEPvKVbxgDOvRR9epPOINeF qY27SwgmM4DN1JYsKcKTZ7aLyE0HwwJ/FG9ZelkIBMlUlt1eq17gl8FLnvDmTa8YJ1Cy ja8uc7SzGG+jXXB+Qtctj6BbQqGGddt/AH9rDhKWlit9VRmypepknaXwZrFmR/b8BDS9 2X4qCF9qA37D2KLY/Qk1PBwFucJ4FpMf/EmrE3cePrEKbXVc4AC4d5yOcIkX6i3SroTI SQ/Q== X-Gm-Message-State: AOAM5307KrzWQDBcPnrDuOzXSAB4vzIASpMBEBiVsT62Z0PPMarGUjj+ V3s2oVeTH5lRaxdQLLmbrXZ00Wjd8E0= X-Google-Smtp-Source: ABdhPJzTC9AIksEmISttTayXzZERN9JiC/K5dGXlwOQKjDiv0vusSY5FlMhZjIFCarzE+QPaOFHbHA== X-Received: by 2002:adf:fd50:0:b0:1f0:7a8e:c922 with SMTP id h16-20020adffd50000000b001f07a8ec922mr3442572wrs.166.1646916273464; Thu, 10 Mar 2022 04:44:33 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 14/35] /basic/nesting Date: Thu, 10 Mar 2022 13:43:52 +0100 Message-Id: <20220310124413.1102441-15-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220310124413.1102441-1-pbonzini@redhat.com> References: <20220310124413.1102441-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42d (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=paolo.bonzini@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org, sguelton@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1646920035754100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- tests/unit/test-coroutine.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/unit/test-coroutine.c b/tests/unit/test-coroutine.c index ae06e97c95..7aaadfd31a 100644 --- a/tests/unit/test-coroutine.c +++ b/tests/unit/test-coroutine.c @@ -93,6 +93,7 @@ static void test_entered(void) g_assert(!qemu_coroutine_entered(coroutine)); qemu_coroutine_enter(coroutine); } +#endif =20 /* * Check that coroutines may nest multiple levels @@ -104,7 +105,7 @@ typedef struct { unsigned int max; /* maximum level of nesting */ } NestData; =20 -static void coroutine_fn nest(void *opaque) +static CoroutineAction nest(void *opaque) { NestData *nd =3D opaque; =20 @@ -118,6 +119,7 @@ static void coroutine_fn nest(void *opaque) } =20 nd->n_return++; + return COROUTINE_CONTINUE; } =20 static void test_nesting(void) @@ -141,7 +143,6 @@ static void test_nesting(void) * Check that yield/enter transfer control correctly */ =20 -#endif CO_DECLARE_FRAME(yield_5_times, void *opaque, int i); static CoroutineAction co__yield_5_times(void *_frame) { @@ -679,8 +680,8 @@ int main(int argc, char **argv) =20 g_test_add_func("/basic/lifecycle", test_lifecycle); g_test_add_func("/basic/yield", test_yield); -#if 0 g_test_add_func("/basic/nesting", test_nesting); +#if 0 g_test_add_func("/basic/self", test_self); g_test_add_func("/basic/entered", test_entered); g_test_add_func("/basic/in_coroutine", test_in_coroutine); --=20 2.35.1