Message ID | 20250207153112.3939799-7-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4e42:0:b0:385:e875:8a9e with SMTP id r2csp383542wrt; Fri, 7 Feb 2025 07:34:27 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW+eo7yrkHsPJuCO3DHr952eiASD+XU22rUR8Y72cDLLEpTxtB3Y2bJj7pJuplaPAhnKF4Y/Q==@linaro.org X-Google-Smtp-Source: AGHT+IF9W/FbaF7u2CBkaa0sgi90tpfPvxlLjw3zm7OhppfR/vTntRpUrH1/+VlgdOEGj7ke5g4/ X-Received: by 2002:a05:620a:1925:b0:7b6:d089:274c with SMTP id af79cd13be357-7c047c5833bmr587779685a.34.1738942467231; Fri, 07 Feb 2025 07:34:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738942467; cv=none; d=google.com; s=arc-20240605; b=WI/YisZBVY5YmSqUQE41EyCk6AAYdFeoT7Of4vygj+V6krw13c3zufefKPY+baQIjZ cyHhwmJChorduzcSTwgl53ZEap0SmDkrbU+rYRUlkxwYCZ4re7u08BmMhoLeP5VU1ljC P5TZTXwSwIYOFakyh4GLSQdiUK48Owo9WFqMMZN9hgau/Kik22ZMHs6IZDqvhAcB9qYw zwQlDqteQ4QqG1j3PwrJ43WO/M5QcpI0orZuImbxiM3zZL3Kq4ZeT1bYhFDuOcxSQB1F /ByXQhUMk9nJuaFwGOPE6MtS8bnA+7kAwQSvecfPvXvP8uAwUVCg9Md/UPVcWwmeF6iG EOyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XyHIrLgGLhzWXn2IY26JotGt/snZhuH8wc9tGSgEE4k=; fh=09uoDjVTf/D2GxrqAPr7OHKGZ21Li2v1uxYs7VLD4AY=; b=e80/+q+0nwoSTFpS38+CUbizezXru+D9U70uINirY4Gk8bcUNvsEZ2Mua4cXwilvvt 1o/WzgBBQe+GMTkoFN2czi0EVatj4V0s8OIlvAEkbGikA1b98mexd6lYT51ZhOGVcDPW Pv3uHCMi2wCi4VojmBCpiIjRvOQB1sfZC/V3G8HgvdG5mrgak8S+lRXz6VTcCHDbK09T Lt2lQAoG9lA0BC7SrwRFCu7p1ID8SrG/98kdOvSaDes2W0aD2/Zcls5wcPtWV7ePH/ot Ig1YtRxaHNJLxJnDi1lpf7wgg3eTSYYP9t7QV6joNlhvj3OMk0zFvBDiq1u4o7Rx0Ers weBA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X1b0NquH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c041df4dc3si356299685a.131.2025.02.07.07.34.27 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Feb 2025 07:34:27 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X1b0NquH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tgQLQ-0000o3-Ek; Fri, 07 Feb 2025 10:32:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1tgQKL-00089W-Bq for qemu-devel@nongnu.org; Fri, 07 Feb 2025 10:31:37 -0500 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1tgQKA-000405-1d for qemu-devel@nongnu.org; Fri, 07 Feb 2025 10:31:31 -0500 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5de47cf9329so1454686a12.3 for <qemu-devel@nongnu.org>; Fri, 07 Feb 2025 07:31:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738942280; x=1739547080; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XyHIrLgGLhzWXn2IY26JotGt/snZhuH8wc9tGSgEE4k=; b=X1b0NquHt1rIGSgOTDLIwVmnCFmHAru0dQynHnPA9OXEeFUvzxH/8MN1q/kcbfu6Rd vq+WHDNwZ6tma0BAAXb8/wMxh63e2d7jUWKa/CUhZFiV3M3SuZS9bGIuerbpv+NF0/cm NSoXVO1Rfsq/pBCuoTDi64lfncVsCxjFfuF9rjeBD1XzLaGB0SSVPoczjUg/QwRtOKqF JmQDeUClCDC4p5OYYY1rkFmb6Wg8ZSLNFWv/0zSikCjRPmFgokyZN18gqbqV1C1YfdUy VEI//fq99O8Q65RNCqrlTqbwbfZvtlwHcC/35Ww21cTW4HGIvZMsi14UkyPUI4tbMy7F EbFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738942280; x=1739547080; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XyHIrLgGLhzWXn2IY26JotGt/snZhuH8wc9tGSgEE4k=; b=EkwVGNWvfPC0Ci1TMVJ/OHE12TyNzZzkFSwpfAaW9d9/WfIadEZkGhkYDMj1vUXaLd pyNT69MIXDaFkdB/Hig+ZnilCk0D6YpfE8s1R8HM02pemgStHENdsTLattTdjyzor0yR 16a16fvKn/ciL8omuZUtnaU90gGhBb5PWtZMrXDWNjSfNkRYmuz2QhReD+yK2251Kboa ExR6VJKrou17KV2lq04irJKVE5aBc+yEjerKp7NFhl3r3tztdiM2eL9eM4AX76nqMDLm Uml/uoGk5TwGdVPG+5LH96KKlpyt0m16W7meB5cq6vIef3fEJq6axnwi1SiPNAB4GzX8 J37Q== X-Gm-Message-State: AOJu0Yw1W8Ou7VVlog5i8s5IbRhbBCiosrtmygeMjTwjRJIuEsVjInxy 3+S47iPkbghtATHxHMyZaDtUIYRB+JK/ZgLSfIRvn4lmLGHrIwtoNfduF+UwIvE= X-Gm-Gg: ASbGncuZrqa1/ixHzTZY8jp2Ba9lgj4ItEkXE6SAQiC5uOSg2E10TUmwlbOQ+dAGXik 52eCTHrEu8xxx1refU9t9un/zN5nzXyCz2r9IcEkozJugnkWyAYJ0MrR5D7iIJS98sqROE2Vfce QluMGTq9Z04JXz9+Z3i1mLgftEfU1jhD+tT29T0tu1fXygVUYflWCPYjPMDYG9zNIUgtff2+kOt KoV2kee/2D5jHqtJmGMcSwO4EdCXx9mEJtGkUw065I3O8scOx7aYPxmLKdio48LYhW3qroWVTDG dwyuiKIAZK9mhIzbww== X-Received: by 2002:a05:6402:4588:b0:5db:731d:4456 with SMTP id 4fb4d7f45d1cf-5de45085cc7mr4289105a12.28.1738942280178; Fri, 07 Feb 2025 07:31:20 -0800 (PST) Received: from draig.lan ([185.126.160.109]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5dcf1b81608sm2621482a12.35.2025.02.07.07.31.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2025 07:31:17 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E35E65FB2E; Fri, 7 Feb 2025 15:31:12 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: qemu-devel@nongnu.org Cc: Peter Xu <peterx@redhat.com>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Thomas Huth <thuth@redhat.com>, Weiwei Li <liwei1518@gmail.com>, qemu-arm@nongnu.org, Nicholas Piggin <npiggin@gmail.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Bin Meng <bmeng.cn@gmail.com>, Tyrone Ting <kfting@nuvoton.com>, Hao Wu <wuhaotsh@google.com>, Kyle Evans <kevans@freebsd.org>, Alistair Francis <alistair.francis@wdc.com>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Laurent Vivier <laurent@vivier.eu>, Riku Voipio <riku.voipio@iki.fi>, Harsh Prateek Bora <harshpb@linux.ibm.com>, Fabiano Rosas <farosas@suse.de>, Alexandre Iooss <erdnaxe@crans.org>, Laurent Vivier <lvivier@redhat.com>, Daniel Henrique Barboza <danielhb413@gmail.com>, Warner Losh <imp@bsdimp.com>, Pierrick Bouvier <pierrick.bouvier@linaro.org>, Palmer Dabbelt <palmer@dabbelt.com>, Mahmoud Mandour <ma.mandourr@gmail.com>, qemu-ppc@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>, qemu-rust@nongnu.org, qemu-riscv@nongnu.org, Peter Maydell <peter.maydell@linaro.org> Subject: [PATCH v2 06/17] tests/qtest: tighten up the checks on clock_step Date: Fri, 7 Feb 2025 15:31:01 +0000 Message-Id: <20250207153112.3939799-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250207153112.3939799-1-alex.bennee@linaro.org> References: <20250207153112.3939799-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
maintainer updates for feb25 (qtest, gdbstub, plugins) pre-PR
|
expand
|
diff --git a/system/qtest.c b/system/qtest.c index 28b6fac37c..12152efbcd 100644 --- a/system/qtest.c +++ b/system/qtest.c @@ -708,10 +708,19 @@ static void qtest_process_command(CharBackend *chr, gchar **words) } else { ns = qemu_clock_deadline_ns_all(QEMU_CLOCK_VIRTUAL, QEMU_TIMER_ATTR_ALL); + if (ns < 0) { + qtest_send(chr, "FAIL " + "cannot advance clock to the next deadline " + "because there is no pending deadline\n"); + return; + } } new_ns = qemu_clock_advance_virtual_time(old_ns + ns); - qtest_sendf(chr, "%s %"PRIi64"\n", - new_ns > old_ns ? "OK" : "FAIL", new_ns); + if (new_ns > old_ns) { + qtest_sendf(chr, "OK %"PRIi64"\n", new_ns); + } else { + qtest_sendf(chr, "FAIL could not advance time\n"); + } } else if (strcmp(words[0], "module_load") == 0) { Error *local_err = NULL; int rv;