From nobody Sat Apr 20 07:50:51 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1500046192529822.1849855722896; Fri, 14 Jul 2017 08:29:52 -0700 (PDT) Received: from localhost ([::1]:38550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dW2XN-0000N6-4l for importer@patchew.org; Fri, 14 Jul 2017 11:29:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dW2W5-0006ng-CT for qemu-devel@nongnu.org; Fri, 14 Jul 2017 11:28:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dW2W2-00016c-0D for qemu-devel@nongnu.org; Fri, 14 Jul 2017 11:28:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60900) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dW2W1-00016B-QK for qemu-devel@nongnu.org; Fri, 14 Jul 2017 11:28:25 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8D089145F92; Fri, 14 Jul 2017 15:28:24 +0000 (UTC) Received: from dgilbert-t530.redhat.com (ovpn-117-125.ams2.redhat.com [10.36.117.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7A0A76FE50; Fri, 14 Jul 2017 15:28:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8D089145F92 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dgilbert@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 8D089145F92 From: "Dr. David Alan Gilbert (git)" To: qemu-devel@nongnu.org, jsnow@redhat.com, peter.maydell@linaro.org Date: Fri, 14 Jul 2017 16:28:20 +0100 Message-Id: <20170714152820.24034-1-dgilbert@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 14 Jul 2017 15:28:24 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH] tests/ahci-test: Be mean with RAM X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" The migration tests used two VMs each with -m 1024 this caused problems when run in some small, pessimistic test VMs (netbsd). We can just be meaner with the amount of RAM in the test and use -m 384 Signed-off-by: Dr. David Alan Gilbert Reviewed-by: John Snow --- tests/ahci-test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ahci-test.c b/tests/ahci-test.c index ef17629345..999121bb7c 100644 --- a/tests/ahci-test.c +++ b/tests/ahci-test.c @@ -1132,9 +1132,9 @@ static void test_migrate_sanity(void) AHCIQState *src, *dst; char *uri =3D g_strdup_printf("unix:%s", mig_socket); =20 - src =3D ahci_boot("-m 1024 -M q35 " + src =3D ahci_boot("-m 384 -M q35 " "-drive if=3Dide,file=3D%s,format=3D%s ", tmp_path, im= gfmt); - dst =3D ahci_boot("-m 1024 -M q35 " + dst =3D ahci_boot("-m 384 -M q35 " "-drive if=3Dide,file=3D%s,format=3D%s " "-incoming %s", tmp_path, imgfmt, uri); =20 @@ -1157,10 +1157,10 @@ static void ahci_migrate_simple(uint8_t cmd_read, u= int8_t cmd_write) unsigned char *rx =3D g_malloc0(bufsize); char *uri =3D g_strdup_printf("unix:%s", mig_socket); =20 - src =3D ahci_boot_and_enable("-m 1024 -M q35 " + src =3D ahci_boot_and_enable("-m 384 -M q35 " "-drive if=3Dide,format=3D%s,file=3D%s ", imgfmt, tmp_path); - dst =3D ahci_boot("-m 1024 -M q35 " + dst =3D ahci_boot("-m 384 -M q35 " "-drive if=3Dide,format=3D%s,file=3D%s " "-incoming %s", imgfmt, tmp_path, uri); =20 --=20 2.13.0