Received: by 2002:a17:907:d504:b0:9b2:89ee:1eb8 with SMTP id wb4csp2906353ejc; Thu, 28 Sep 2023 17:09:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMiE6o/sFSUv00usz4w4tooClvaLIY+us0NElqg4jmyJgvZgightzQc/oyVaY3Y7pi3Hk8 X-Received: by 2002:a0c:eecf:0:b0:655:d6ff:891f with SMTP id h15-20020a0ceecf000000b00655d6ff891fmr2885777qvs.60.1695946151193; Thu, 28 Sep 2023 17:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695946151; cv=none; d=google.com; s=arc-20160816; b=VO2uLtAqJaxhfrMLa42dGOZC0+Rpft9XNC4pdlEfJhe9f9+mkymojiu43uKNDNlwRZ plx15zLZBR6uuRTpgMVDescWBSTZIcF2ab/FPv2e07inpf4XTDiisUn+JDq81RB5uTIi DRugUtxeLGQAU6IMViWZFOgf9XIJ/eoXztRWUGYWGi7L4rJAXbgsrsdlbYL8+2iG/0s4 dIDKldoopFjcmWhhJcpJVfz3x6TWExCQEJEtsX3h82KLl5eWDf5AEXyVrryXl25PLdZQ 81De+oSiOfZuKORQZibBct1hBFH0kZNeZ6A/WDeB56zjgi4CHi2M6r8yyYgcL05Ner16 F7yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:from:subject:message-id :mime-version:date:dkim-signature; bh=gCUoWaUBrRFpXZN49O4CNx4kkok2AqXAjlMhH6h/pZo=; fh=tBgwZEDnZy9+WvcDFLyj+KFRVTmArTrKTZo6hZlbXFs=; b=cSsmto0ZuNayn6IoyLtVgXVi/NBbZC1xYorPb7yE+KsouU+SYitWwR/B5ldJsZDZ14 MJx6GciagoOhvk2tKegnzK0toK9OTdzZmDQdCVgX2+ne2fey1m54FSH23Zf6weRUgL1f Y+gdA1/ahHBUs378ql8qdbPyGBO0MjfHcliW8KnoXrLx5OS5Tzz295/ysoxAVHXDGbEp uoxv4ODruVby9XOWHQ0x+NrvIgkkuf0j0iK+SYuxWcN9zNvfsqxm15KIlzujyDU/cLd/ ZtkSu9ZD5m0IhKq4SrBVp68sV5bmOWOT3fiJCLQEFgexfBB6odOoYJu4ogVioBx7okIj eSwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=IrJxJ+Wt; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z3-20020a0cf243000000b0065af55afb2bsi6407669qvl.469.2023.09.28.17.09.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Sep 2023 17:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=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=@google.com header.s=20230601 header.b=IrJxJ+Wt; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qm13q-0002dI-Sm; Thu, 28 Sep 2023 20:08:51 -0400 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 <3ixUWZQYKCj4hwfzjwlttlqj.htrvjrz-ij0jqstslsz.twl@flex--crauer.bounces.google.com>) id 1qm13o-0002d9-Bl for qemu-devel@nongnu.org; Thu, 28 Sep 2023 20:08:48 -0400 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3ixUWZQYKCj4hwfzjwlttlqj.htrvjrz-ij0jqstslsz.twl@flex--crauer.bounces.google.com>) id 1qm13m-0005WC-Ax for qemu-devel@nongnu.org; Thu, 28 Sep 2023 20:08:48 -0400 Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d8191a1d5acso20662468276.1 for ; Thu, 28 Sep 2023 17:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695946124; x=1696550924; darn=nongnu.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=gCUoWaUBrRFpXZN49O4CNx4kkok2AqXAjlMhH6h/pZo=; b=IrJxJ+WtmthT3295sVhv6Et4p6sFnAvuk0x5exRXeESxnlMQS9Mo1VuH3nb+vA6olV pHwX0StOi7uwQ1j0eq3vKnWvSL72ZblQStJIj7yTUCRvByvatfUDddpUvGdcqMgXgNAH ODd9UJcq1hN21Tsq8VHOV21DniC0Ufz6asfNKpXCw/Hqjhz0kS3iY5rwSkZWAiIAL24c iOJbVrzCdHvV2oIiqUyxnI1MmcjZ19mLbGII8oFwzcp49I3BVvBKq3utDUi/0iDiRGX0 fSkZqcssbx9o8ektxUqoqRLK9qR10N3XVNLyCCk9C/9l+T1MwPZC4KlPKU3oOuGVVYt+ s45Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695946124; x=1696550924; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gCUoWaUBrRFpXZN49O4CNx4kkok2AqXAjlMhH6h/pZo=; b=KOKY5pmg99FGeyVYDyL9WBPoXeRv1ZjtxJtVu1aSQgTKcGzfoFa5QrTc20en8ooPbO k6sm0nQlYAFi38g9mIVib05WKZMP1F1HGmJiBvWwsg2rDOG1Nk0Uk7vbRN9kFwC7MKC2 +Mz6KRpfS8n9KrLVI4YVqwldlvgBwnoIyHyWVG3hxYjNK6davOH7JA/ADg8IjCRlRUZs 9IEJG9B65yhe3AVxqEeKRuf0TlWLNxVpvsh3qWAccMyaxxezNpujq01XxAM8OCmTETsg 1DYwjtwAfxutNkhMi0w8EPmF2ExutoVzbkBNvtKNcBizny4jpB4UCF1vb3bzF23r99yz AY9g== X-Gm-Message-State: AOJu0YzQHxSJAeM9vgstNASNr1IiYn3cl0JM4KcgHtegockGNpos+R5A xIz7j0JhSU6uzNVJ9OzLDLTB9zonVuY= X-Received: from crauer-cloudtop.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:100f]) (user=crauer job=sendgmr) by 2002:a25:694e:0:b0:d7b:9902:fb3d with SMTP id e75-20020a25694e000000b00d7b9902fb3dmr39652ybc.0.1695946123614; Thu, 28 Sep 2023 17:08:43 -0700 (PDT) Date: Fri, 29 Sep 2023 00:08:31 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.42.0.582.g8ccd20d70d-goog Message-ID: <20230929000831.691559-1-crauer@google.com> Subject: [PATCH v2] tests/qtest: Fix npcm7xx_timer-test.c flaky test From: Chris Rauer To: kfting@nuvoton.com, wuhaotsh@google.com, thuth@redhat.com, lvivier@redhat.com, pbonzini@redhat.com, stefanha@redhat.com Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, Chris Rauer Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b49; envelope-from=3ixUWZQYKCj4hwfzjwlttlqj.htrvjrz-ij0jqstslsz.twl@flex--crauer.bounces.google.com; helo=mail-yb1-xb49.google.com X-Spam_score_int: -95 X-Spam_score: -9.6 X-Spam_bar: --------- X-Spam_report: (-9.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, 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, USER_IN_DEF_DKIM_WL=-7.5 autolearn=ham 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: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: XOVzXr/jUiX/ npcm7xx_timer-test occasionally fails due to the state of the timers from the previous test iteration. Advancing the clock step after the reset resolves this issue. Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1897 Signed-off-by: Chris Rauer --- tests/qtest/npcm7xx_timer-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qtest/npcm7xx_timer-test.c b/tests/qtest/npcm7xx_timer-test.c index 43711049ca..58f58c2f71 100644 --- a/tests/qtest/npcm7xx_timer-test.c +++ b/tests/qtest/npcm7xx_timer-test.c @@ -465,6 +465,7 @@ static void test_periodic_interrupt(gconstpointer test_data) int i; tim_reset(td); + clock_step_next(); tim_write_ticr(td, count); tim_write_tcsr(td, CEN | IE | MODE_PERIODIC | PRESCALE(ps)); -- 2.42.0.515.g380fc7ccd1-goog