Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5038578imm; Fri, 18 May 2018 15:28:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoQgNapCu8Qwl8ITTBBYPVMPCF6VbTJ9PoJK+tkpuiOVDpWrgW66Pr1FF5Ql3hzh18K5Ypn X-Received: by 2002:a62:e710:: with SMTP id s16-v6mr11102447pfh.227.1526682521765; Fri, 18 May 2018 15:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526682521; cv=none; d=google.com; s=arc-20160816; b=lwBlrrxBk+ljwRmertua/xP4EkU4m4gJRcUWiisiLK4mWaJcqF3eduLvEz4OH+i7ME /XliISoRA2eCoxZBfcHOJjHBMBRZT1zgphWsj68hmD04ccAqCE5bMaGjDb3OC8LZ3K57 gP5Sl7tnD25axlji4Vg55rU7S3qFVB8lZqL3dtuEds73D0pcA2UzH9KwWHUFzaKPhsgh UtvbEs0OvUsptD2PvT5omlPXWeQMjHD+u4n97OuiQdDmIbOjI71rp1HkeQ/ojNTKLMj3 VvvZrUcIZ+fXaFBxOEKVq8FHm/39MF2nryqca6W6mNAJRCqBNkth82a9o0gr7Am/KjLt 4lSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=tdko+fepjOQJtYj2BDc6xovqTL/aK2aVMiuZGzKnbHw=; b=SWgQ/y/CGIO0xqI/gkP6It9izhN/1wdVicYw949d1CQObWg2qP5oy59fQD+ltFfol5 E8P9wDElFG70dAEyKdpElwKbCORljVbrUSHl+V3EHKDs/UzDFLHhVPAvIaEWtkL01eit oVQE3O3wVeBdLgywkGGnGFz7VpgGdGevzDiOp9LrcvkUjkHjcVtODo/HaYws9QOKGanh N06pKyrNscnERvrF4Z1d2cbghTwJT3PF0erzH0XJgV/EvGZ6Rm5/DgjE462KPnxFJaux CXPr7xZLnWdd7Pc1O04R2zPIOc44ipeveMzlqNwP3AIYqzzRcx37R+WRZBHKXV6ms4Cp lASw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FNtLWe0M; 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 v24-v6si8802468pfj.292.2018.05.18.15.28.27; Fri, 18 May 2018 15:28:41 -0700 (PDT) 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=FNtLWe0M; 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 S1752277AbeERW2O (ORCPT + 99 others); Fri, 18 May 2018 18:28:14 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:40355 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943AbeERW2K (ORCPT ); Fri, 18 May 2018 18:28:10 -0400 Received: by mail-lf0-f67.google.com with SMTP id u140-v6so3813489lff.7 for ; Fri, 18 May 2018 15:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tdko+fepjOQJtYj2BDc6xovqTL/aK2aVMiuZGzKnbHw=; b=FNtLWe0MzlVRjZAXXYK13BGoJ+PpptLevkUGYqfHI26oM91/19n2h/XCMd2wob9xtw g1z0hxWjcQHfDsx+OmINYFkYeTCI7nj7IkZtbznEWRoHvW30Jz2SKJjpaGQ4KBKt+SOK xYOBBxsgdRoPXKHlUWRTBigHi2SAN+NSjGPHk= 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:in-reply-to :references; bh=tdko+fepjOQJtYj2BDc6xovqTL/aK2aVMiuZGzKnbHw=; b=M8uPXt817V5HnN9dkZ3GeK/qbxMdvYnmIDEluv+YZk0b/pA/yib7msAhapGZMH2L/8 R8dO2SEB2L7gYMTyPqnbUF0e82v9MHOMH5Z9AEM1WinZ4hZFZn7oeNGRCE7JuMwtJaA6 /y/Ed9j6CxRepAB3bEg9NRR7hdOnEvzX02hfVWvxW41JtAwzSYh7/AQS7w+RBVw5t3Sn UYIXwprAho9hGP6/mYaj8TtocBvXAaC+NGbo5KAL1ZBlqbmZJmm5dOoLUE9wO5pnxodt KGzfsdwxb0DSqCGpDnuahys+XbY31eJf9UjRABmQ2NDgmcACZnLip9oMQgQVa+qhfTN2 TG0Q== X-Gm-Message-State: ALKqPwcbz5UMQDaqGYpndgcNX9XZDaM/DQEefEswCWq7hWByQu5is8ur PVbyEqNRpt5lXeDu62v6GZVWSw== X-Received: by 2002:a19:94c7:: with SMTP id o68-v6mr23249984lfk.111.1526682489452; Fri, 18 May 2018 15:28:09 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.bbcust.telenor.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id v14-v6sm2088233lfi.66.2018.05.18.15.28.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 15:28:08 -0700 (PDT) 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 v2] selftests: net: reuseport_bpf_numa: don't fail if no numa support Date: Sat, 19 May 2018 00:27:37 +0200 Message-Id: <20180518222737.16006-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180306151004.31336-1-anders.roxell@linaro.org> References: <20180306151004.31336-1-anders.roxell@linaro.org> 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. 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/reuseport_bpf_numa.c b/tools/testing/selftests/net/reuseport_bpf_numa.c index 365c32e84189..c9f478b40996 100644 --- a/tools/testing/selftests/net/reuseport_bpf_numa.c +++ b/tools/testing/selftests/net/reuseport_bpf_numa.c @@ -23,6 +23,8 @@ #include #include +#include "../kselftest.h" + static const int PORT = 8888; static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto) @@ -229,7 +231,7 @@ int main(void) int *rcv_fd, nodes; if (numa_available() < 0) - error(1, errno, "no numa api support"); + ksft_exit_skip("no numa api support\n"); nodes = numa_max_node() + 1; -- 2.17.0