From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 1A1D02C2B for ; Fri, 14 Jul 2017 23:12:31 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id 15so936176wmm.3 for ; Fri, 14 Jul 2017 14:12:31 -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=K10zcZCTlvz28Yp2YrpzauQHSuXefkdB8ea/M46zjrH6w2asLbQ6uq+2Qj3M7QSVJM tiBUOi5vQUzOgozWWT2r/FbQLaLix9B9U99+rQxnEZDIQXL0bmHbA1eN11TK3fNF3OwR XJupy137lxSKAPxOMAKDQZDz0LmaqJRX47xj0blftPja0UIlZkjv2OPVfOZ8ZU8wB549 eIW9wJv7cIePyLA/giPknmNPx7b3/2vpA5TKE3Utoi3SaqpR/TrwINNH6XZONGIUUdGS CFqHJA18T9BwozO3JsRTTY9dyGaBmFal/moNAtbX6fQFIF5oQFWBRxHG0DYKncnC81Ad 88JQ== 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=HRqxVJ/Kc+oFmfzW9Udln2QNaO9KeJ9TmdcoJDSrIDKrdRiM3GDl+6E4owOfGAyzPF A03lM7no4k/4bEWVC5k5bLEf+kmolfnxjR2K2r4w1a2LKT2OtbcB56HMHOkDruMG/KJ4 1J1rkmfhzlIxiQUAGt9MblEg2sqaxEqIzfmXYBlnM6QodvcO+AdYS5RoM8ibXhp8oMMx xrgbtu5O8plJm7z/jJwYEQOF35N8F4wMH8SC5tcW+BYwILotYYYfiiZKQNgCd1GXUv4+ iEPRJn0uAmOEgGipVFIhangQ53KvhCEPwLrBq2nl6+k69Zt+kT4lNY/nANwEzv7/bTI2 5JRw== X-Gm-Message-State: AIVw112w5j26K2gOcIumhayxhFWyKmwBizPIu2kIBocx6WZ6iv4ykHhx q8YPT0XXYwpbQogM X-Received: by 10.80.137.173 with SMTP id g42mr7987529edg.125.1500066750658; Fri, 14 Jul 2017 14:12:30 -0700 (PDT) Received: from localhost.localdomain ([37.228.147.16]) by smtp.gmail.com with ESMTPSA id c11sm4892223eda.0.2017.07.14.14.12.29 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 14 Jul 2017 14:12:29 -0700 (PDT) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Date: Fri, 14 Jul 2017 17:12:00 -0400 Message-Id: <20170714211213.34436-3-jblunck@infradead.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170714211213.34436-1-jblunck@infradead.org> References: <20170711232512.54641-1-jblunck@infradead.org> <20170714211213.34436-1-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v2 02/15] 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: Fri, 14 Jul 2017 21:12:31 -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