Received: by 10.223.185.116 with SMTP id b49csp3924847wrg; Tue, 6 Mar 2018 07:11:27 -0800 (PST) X-Google-Smtp-Source: AG47ELsSNQN8w/P0UAGjgOT0QzOcNrMcxIc4r9jpfM3nLdfv1m/yY13uIMAonGMTs81eNRvdz7U6 X-Received: by 10.101.98.205 with SMTP id m13mr15289371pgv.100.1520349087126; Tue, 06 Mar 2018 07:11:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520349087; cv=none; d=google.com; s=arc-20160816; b=pUKFvsZ7u4REaLwxKjis/cFPJdHCaggsAU8ELuxVBpknONzvhmi+xwoNd2w3OIyMcr e6qf2n9LtvduElkV4lBx7SJhzWU3YxxnADFKRPDO1pdAFPjjU3G30eD7xLcf5m2ghRm1 FrFjWvSNU3lYc4hXCKwe5A9UaztFRdJtxmcprHy73tIkfyyWVpgPaozTsB6xIFLINSRK ketiHTLe3sAwv0xUP8i9NvANykORZtbjMS3GOSzggSGasmTetiB18fug7JA9bbYVpdfD Zfcf4I6Y68coplnvMlTry2E3k+K0afZ9EzY41bbpAQi+E1HuMaOfhSrLhDAyKclWbQq9 nuww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=KLLi53zxRuws/WbckjD//8LGHBmnZG0iCopa//ii4tQ=; b=V8uxhyjSeYcATTjDS89vRC59/SZ3nC+kWZV2KLIMwS7uLy+UVQFtpDDQdMmAMeSKLJ ToKGDHZUP7JAvRbyQFc1toFs2Iv/qbhGLRO8KPhpP01z+C6RbCFbyXFUovux4QlHKa7i fvr7dy0eWKf15IXVjSKQV64zv1kOEjaybEyaFh/HQc6IbPt3J9ZjhxDdW0ifA7AGRkEC zyU+B1+gN7ps7MFfhLJMTBXOvMv6E7sa9Ak1nveoPKo2AvceAwWGlMS0npiU7kHOkpFB tIzuuzgEYqYLVKgTTb5vvFpaaa7OVaODHUPe7iElRHTj88w3sx7Ez9qazIu2Sthq7fAq 6hQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cNVYxO5K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8si11942626pfn.234.2018.03.06.07.11.12; Tue, 06 Mar 2018 07:11:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cNVYxO5K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753769AbeCFPKO (ORCPT + 99 others); Tue, 6 Mar 2018 10:10:14 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:37864 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753627AbeCFPKM (ORCPT ); Tue, 6 Mar 2018 10:10:12 -0500 Received: by mail-lf0-f65.google.com with SMTP id y19so28997712lfd.4 for ; Tue, 06 Mar 2018 07:10:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=KLLi53zxRuws/WbckjD//8LGHBmnZG0iCopa//ii4tQ=; b=cNVYxO5KfC2i1MrAqLJwvaCr3SxyXtXO9fMYGMbsnTc8ZwVdTykg6ztJxlcklGaW2R 6ot66R8o/hBGuaFmxTqB6dLIp9SbQbcjIJGTG8aOuX79xfS3rpLbYXwHfsomdtlbtSQf 28+chV9K4LdxXJw0q+yI/MRFZpLthFNS0dT98= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KLLi53zxRuws/WbckjD//8LGHBmnZG0iCopa//ii4tQ=; b=px764UPUqKAbON7IIIr4NsOg6cKm0ecOKYnkdCFu72YA2Y+RGOM7vCWMvttbFa7ylF uXeIzmyHS30nIYCmXqEgnMRN0wSyHLEDUOOdTN0AuKWXg0rF3CL2tdmSXKn1TmSGxSkv 0K8rfachcWCvfK93uzkdqRuyIieWJwW0CreQfGfT0YrhI4IN8QdB8z9rMnh6fcZhyhn6 IpjF4l6Sm84Uuk5KdhinCdjtQZCyb+cZ+vjAAxpZWwe3XXpALxBIFj1+Z/P87DakS0tY 5iBgGjx6fDL5y4v+NGXpfe+zSqWhxzDjGWS25ZBpMoWPucdzugsAK9qK/gR4IebZzkem +dVA== X-Gm-Message-State: AElRT7FJvP94hIKX1O8cuM4cknBmnnMcZmOH4TLTEf4ccwgjFiYxFpKZ t/6U5ZHpiGZ5ISuqDK5NLQtQGQ== X-Received: by 10.25.80.25 with SMTP id e25mr12570905lfb.79.1520349011171; Tue, 06 Mar 2018 07:10:11 -0800 (PST) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id o88sm3221251lfg.34.2018.03.06.07.10.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Mar 2018 07:10:10 -0800 (PST) From: Anders Roxell To: davem@davemloft.net, shuah@kernel.org Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] selftest: net: reuseport_bpf_numa: don't fail if no numa support Date: Tue, 6 Mar 2018 16:10:04 +0100 Message-Id: <20180306151004.31336-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The reuseport_bpf_numa test case fails there's no numa support. The test shouldn't fail if there's no support it should be skipped with a pass. Fixes: 3c2c3c16aaf6 ("reuseport, bpf: add test case for bpf_get_numa_node_id") Signed-off-by: Anders Roxell --- tools/testing/selftests/net/reuseport_bpf_numa.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/reuseport_bpf_numa.c b/tools/testing/selftests/net/reuseport_bpf_numa.c index 365c32e84189..9245c14165b7 100644 --- a/tools/testing/selftests/net/reuseport_bpf_numa.c +++ b/tools/testing/selftests/net/reuseport_bpf_numa.c @@ -228,8 +228,10 @@ int main(void) { int *rcv_fd, nodes; - if (numa_available() < 0) - error(1, errno, "no numa api support"); + if (numa_available() < 0) { + fprintf(stderr, "no numa api support"); + return 0; + } nodes = numa_max_node() + 1; -- 2.11.0