From nobody Wed Nov 12 11:49:55 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.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 ARC-Seal: i=1; a=rsa-sha256; t=1570314125; cv=none; d=zoho.com; s=zohoarc; b=AdgZjOms5Wus6q5SLcUNwGxoV3SyTv3rs+3/zv8y4sUGC91+ce5JOMsTvOo5K4vEuY/AmVaJpWS+wj+gq2xYAdJN7nx5kOkZA4TK+rxYBqPftJe5Z2hRo8SQUYR+ux/7OEgwv35GdhimyXOOyAxQc7mRQFIbYXs/zkQDKGG/Rcc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570314125; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=t+/oBfHBgFe+XZkVKBg0QFeK0Xg3a4kGOrnxOCZxdy4=; b=mUg/GP2Npm+ebG1hF9YrWL2xKsZWonAiHvXmDTQTg13ubnfhLLoP99DxUPV84imq3tk8tEeW5uXuJGD3arzdb6L7m24f+s2OkBM5s8qTnPxL3fBOXE4xW8FoNtm//SL0X2QuzjfXVarYNo7a3JctXAPoSSTcgBYqBJZA6Y4+0TI= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1570314125523399.6503282034429; Sat, 5 Oct 2019 15:22:05 -0700 (PDT) Received: from localhost ([::1]:59186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGsRA-0000XK-0m for importer@patchew.org; Sat, 05 Oct 2019 18:22:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47995) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGs5g-0005TG-5e for qemu-devel@nongnu.org; Sat, 05 Oct 2019 17:59:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGs5e-0004U4-8B for qemu-devel@nongnu.org; Sat, 05 Oct 2019 17:59:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60326) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iGs5c-0004Te-PR for qemu-devel@nongnu.org; Sat, 05 Oct 2019 17:59:50 -0400 Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F1F9B59455 for ; Sat, 5 Oct 2019 21:59:47 +0000 (UTC) Received: by mail-qk1-f199.google.com with SMTP id 10so10685918qka.2 for ; Sat, 05 Oct 2019 14:59:47 -0700 (PDT) Received: from redhat.com (bzq-79-176-10-77.red.bezeqint.net. [79.176.10.77]) by smtp.gmail.com with ESMTPSA id k2sm4272637qtm.42.2019.10.05.14.59.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2019 14:59:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=t+/oBfHBgFe+XZkVKBg0QFeK0Xg3a4kGOrnxOCZxdy4=; b=PApBpjUON5bJuj8P+Jk39yq2yVhfNlVHCVSkc5m3IV9c/wK24npaQDbvCV9agNPs9c 08rku4ihBehuZ9EZX8njUqt2Z/hWS6X4ig5JsIYQy5t9qx/TNeH9/E53l+yPjXwuzbHr fk1kv/cxBjZ+PUSKmv8DeXE0SEOKPpN2BXGw2TaBPW1uRhtmnWsO+qAfmUIH+36uhweC 4no6eZ8/SQHQuqyK0YPdkmGbloxvHPLVb+ktUgbhPGqQdAGfTXuF0w8TNnnzZ3fJgPNx +mT0wKTGlg9n3HEQ9/go0/QgK3RYKPLn+Rz8NcSz5HYz9EVZVpS46qDvWEAVZYSrdlHW PXhg== X-Gm-Message-State: APjAAAUP81N7Pj90TuXZmpFUYmaqWz+3y2D3Xh7to6cceAudHKDqjMgC L6Am4g/NNXhgtc0/q5rReE6ihkF+UlCxNz9OWm8N9ZGTcCB9ErlxDtWd8ug3MDIcZq15K/ybpic +1sKmy9Ccdup2IfA= X-Received: by 2002:ac8:305d:: with SMTP id g29mr23117650qte.279.1570312786972; Sat, 05 Oct 2019 14:59:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8qdU0AmT6v9PjbSmxQKrkk8CYbjsaLFRnoe9FiaP2becPiDdpwThrxpsLRJWINGHjkyj45w== X-Received: by 2002:ac8:305d:: with SMTP id g29mr23117636qte.279.1570312786807; Sat, 05 Oct 2019 14:59:46 -0700 (PDT) Date: Sat, 5 Oct 2019 17:59:42 -0400 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Subject: [PULL 13/19] tests: allow empty expected files Message-ID: <20191005215508.28754-14-mst@redhat.com> References: <20191005215508.28754-1-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191005215508.28754-1-mst@redhat.com> X-Mailer: git-send-email 2.22.0.678.g13338e74b8 X-Mutt-Fcc: =sent X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Peter Maydell , Thomas Huth , Paolo Bonzini , Igor Mammedov Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" An empty expected file is a handy way to seed the files without creating merge conflicts. Signed-off-by: Michael S. Tsirkin --- tests/bios-tables-test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c index 9b3d8b0d1b..8b066cc8f9 100644 --- a/tests/bios-tables-test.c +++ b/tests/bios-tables-test.c @@ -334,7 +334,10 @@ try_again: g_assert(ret); g_assert_no_error(error); g_assert(exp_sdt.aml); - g_assert(exp_sdt.aml_len); + if (!exp_sdt.aml_len) { + fprintf(stderr, "Warning! zero length expected file '%s'\n", + aml_file); + } =20 g_array_append_val(exp_tables, exp_sdt); } --=20 MST