From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id DE439374C for ; Wed, 12 Jul 2017 01:25:35 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id k67so1740856wrc.1 for ; Tue, 11 Jul 2017 16:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=qDwb6U1qO+ZNGOTr1WXxQ6wgvc+YV+g6CX8P2NclZfA=; b=moym8TI5IaLNjj/HXmdD07ZEDEjP0PcQjQ1pdsZURrUIisS+j1aEEY2pVSOqU5mAdn 0qPLGVgIsDzhmD0gfEFzfnL1MEmnXg+D2rLjq9/YQmFDI6sZ5ZkN1fqgBSxSapxSqNC1 XS7jvLdwhWcLMR2JKvLAuNr0TCB+pMw75RLoqlsv9n021taGxdA5QCmz2+QDRsx6PaJf uvB0hpWiCE7ijAOqnI//dKBtMk7XUHKYaqOLdbtcFbsOViJJ9kAF5HzvsosUf4JJqh1U qG6KVs5A5ldGtOVMm1e0XyJhLCyT79jpr0CBjl6bBGU+uWFL8ZXS/UQ+DIiXKC/bp9BQ qqKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=qDwb6U1qO+ZNGOTr1WXxQ6wgvc+YV+g6CX8P2NclZfA=; b=rErpZ9xVDClQ31U0m5qkV4YQylX6B33LO52caPFtPd0aELKRhIN1kGj/c+F19F1NZT bZ1gCyIDlZMFRxnn+H37igFGSAxsOwMARmTpVBtf9WCxsWQ3Lq1SS+ID0ItLz3YOklg5 /YnYF3I5D8MHvJfgalw6PSfPG2gaohcgVUDyKbNK/hqNhhhUX2HB8nDg4hdACpthpGs9 OGW9qwut2ULCT8DthhCLmPVxj1PPszWPS1jCzraK4bKA3q2BCmPYd60rRoRbZ+giVfdZ dd17jUHejMx7QVQwTTIL79DWLHilt/dB0B7Q/lG7bmK4m+4nyJH8316B04bPIXJC8bQ1 /2xA== X-Gm-Message-State: AIVw112CcSSXsuTmQp6G5oRWxNXnrzVtnMsu7bNQoVdMeJ81LjqLiX9m iuL64S72hECZheAr X-Received: by 10.80.171.229 with SMTP id u92mr4260199edc.80.1499815535274; Tue, 11 Jul 2017 16:25:35 -0700 (PDT) Received: from localhost.localdomain ([37.228.147.16]) by smtp.gmail.com with ESMTPSA id k45sm311516ede.16.2017.07.11.16.25.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 11 Jul 2017 16:25:34 -0700 (PDT) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Date: Tue, 11 Jul 2017 19:25:01 -0400 Message-Id: <20170711232512.54641-3-jblunck@infradead.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170711232512.54641-1-jblunck@infradead.org> References: <20170711232512.54641-1-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH 02/13] devargs: fix unittest X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2017 23:25:36 -0000 Since the scan-mode of the bus is now based on the bus configuration it isn't possible to have blacklisted and whitelisted devices existing for the same bus. This fixes the unittest to reflect that. Signed-off-by: Jan Blunck --- test/test/test_devargs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/test/test_devargs.c b/test/test/test_devargs.c index 18f54edc1..02fec8b1f 100644 --- a/test/test/test_devargs.c +++ b/test/test/test_devargs.c @@ -68,13 +68,15 @@ test_devargs(void) goto fail; if (rte_eal_devargs_add(RTE_DEVTYPE_WHITELISTED_PCI, "0000:5:00.0") < 0) goto fail; - if (rte_eal_devargs_add(RTE_DEVTYPE_BLACKLISTED_PCI, "04:00.0,arg=val") < 0) + if (rte_eal_devargs_add(RTE_DEVTYPE_BLACKLISTED_PCI, "04:00.0,arg=val") + == 0) goto fail; - if (rte_eal_devargs_add(RTE_DEVTYPE_BLACKLISTED_PCI, "0000:01:00.1") < 0) + if (rte_eal_devargs_add(RTE_DEVTYPE_BLACKLISTED_PCI, "0000:01:00.1") + == 0) goto fail; if (rte_eal_devargs_type_count(RTE_DEVTYPE_WHITELISTED_PCI) != 2) goto fail; - if (rte_eal_devargs_type_count(RTE_DEVTYPE_BLACKLISTED_PCI) != 2) + if (rte_eal_devargs_type_count(RTE_DEVTYPE_BLACKLISTED_PCI) != 0) goto fail; if (rte_eal_devargs_type_count(RTE_DEVTYPE_VIRTUAL) != 0) goto fail; -- 2.13.2