From patchwork Fri May 18 22:27:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 10412409 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 48F0C602CB for ; Fri, 18 May 2018 22:28:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20973274D0 for ; Fri, 18 May 2018 22:28:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12FAB27F95; Fri, 18 May 2018 22:28:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80754274D0 for ; Fri, 18 May 2018 22:28:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752228AbeERW2M (ORCPT ); Fri, 18 May 2018 18:28:12 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:42945 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752059AbeERW2K (ORCPT ); Fri, 18 May 2018 18:28:10 -0400 Received: by mail-lf0-f67.google.com with SMTP id b18-v6so16080500lfa.9 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=tNGmjOY2joGMvmAQ47tB0zluUZNtBvPBOuwWf0enEVXk6N67DSjDJayYhmBSrFtOo6 m93oFSCKy/eflweRG/Jb8dduYHhKgtR0nXGcNgknoqSJGmFUKQGaC0fY6Wz/sZoTSC2/ bdocG1wOTsMXJIsE9lfIC+Q7sW4mfcOoLWIFV8wl1U84V7t5SZWx51NmpdXgTDcUCPyb LJq59rEN7EbTdJL5DSuloMq6WwWRiZOuYEawv3I342gmZ1kXVmpTg5316DqQIO4fYiAg D+1CymOxobRmkVQ0D0fTOMli83Kdgb71l1ldvDUuy3JsQhXGVkqA1b2nzUDi2BJQnANg 7E8A== X-Gm-Message-State: ALKqPwc/B6Ro6tuwvfFTwMcZVEc0u1C0pHe0jB8n6C83N6RVYzmeRGGQ G6+8GrXF/X77qKUwkc4oLomPHg== X-Google-Smtp-Source: AB8JxZr5RgZ/vTuWGIAvgm0sCFt6BYLobA8D+gYQ9nBJc6+p4V7pEpCXu0vPdFmUGOH4nWFpUlA0bA== 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-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;