Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3439135ybi; Sun, 26 May 2019 23:31:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQPd5mb3NmVVJ0xHJIiaEraL2XV4Y22GGTKAh/0gtr9/K5pMbMQDmQdDIdQuuOTxrej/bW X-Received: by 2002:a65:6495:: with SMTP id e21mr36122929pgv.383.1558938698579; Sun, 26 May 2019 23:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558938698; cv=none; d=google.com; s=arc-20160816; b=C2RdNRV+mKXU2WcI/rfibu9s9lrir17iF15FRPpW2UIVjTErhs9hGvj396CXCmKxoi tGZAP3hNUJcZp+rseO4dVOz8usm0Hfc5UQp01kmWwVg2CfJ9Xzsbxt6n9+PvctVIYGgX UQRJLCTYIJ9cL/zsymIO1WDiATlg2FQUw3RYlWnksUIq+wmlFaLRtMmP+E7bbCtBtOdD xr3c3FpvKpuUUJXM9mNwFNwAgdx9K3OjbRPDX7oPYa6LWaPzJa90sGmflayEiAjL9bF0 LtmuBZlzUcdgVU7dHYc9/3ZIXk41p8V/RIzmNSSyZ8aG++n8cKhIoKKOpb2SSVzzvde6 0flQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0ctkSA3jqe+5ipg4zDAZhiRH7UbYAmeZPdQvYN71qu8=; b=r7s+VyLxOSkMVQHeM8Sc1sWMOAI183Dp0UuGV8w4spkPyhL1L+wTgEHhJc3kSz2uLv CRkRqtterxQz7hFMeQD981F6JISRWcTJVzhLFfNnYSQfqZr94nLj5tdeeEv8eVPIGpIQ FmqKEixMVyS4sHnHWeVqi46oH0yxlI2GRr9wgz6MVmaD2vhD0z6InHHmvXPRbIKUzxOJ 4R0RLiaHhpw6g+Xubrdk3/NSuccg+8HAfRRBwwhCXCVxqA1EiTKVcmYMC8DKHaNmhG9O m2NN/xNjdRqkCYgXKxRDf+e3kaLbeKEoVGjb/vMOri1NwtBPdMZB/qsqkFHlTCXquKsF kAcA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si15976857pgi.579.2019.05.26.23.31.23; Sun, 26 May 2019 23:31:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726451AbfE0G3L (ORCPT + 99 others); Mon, 27 May 2019 02:29:11 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:50197 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbfE0G3L (ORCPT ); Mon, 27 May 2019 02:29:11 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0TSmgVfX_1558938540; Received: from localhost(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TSmgVfX_1558938540) by smtp.aliyun-inc.com(127.0.0.1); Mon, 27 May 2019 14:29:00 +0800 From: Alex Shi To: cgroups@vger.kernel.org Cc: Alex Shi , Shuah Khan , Roman Gushchin , Tejun Heo , Mike Rapoport , Jay Kamat , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Claudio Zumbo , Claudio Subject: [PATCH v3 3/3] kselftest/cgroup: fix incorrect test_core skip Date: Mon, 27 May 2019 14:28:07 +0800 Message-Id: <20190527062807.93404-3-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.856.g8858448bb In-Reply-To: <20190527062807.93404-1-alex.shi@linux.alibaba.com> References: <20190527062807.93404-1-alex.shi@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The test_core will skip the test_cgcore_no_internal_process_constraint_on_threads test case if the 'cpu' controller missing in root's subtree_control. In fact we need to set the 'cpu' in subtree_control, to make the testing meaningful. ./test_core ... ok 4 # skip test_cgcore_no_internal_process_constraint_on_threads ... Signed-off-by: Alex Shi Cc: Shuah Khan Cc: Tejun Heo Cc: Roman Gushchin Cc: Claudio Zumbo Cc: Claudio Cc: linux-kselftest@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reviewed-by: Roman Gushchin Acked-by: Tejun Heo --- tools/testing/selftests/cgroup/test_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/cgroup/test_core.c b/tools/testing/selftests/cgroup/test_core.c index d78f1c5366d3..79053a4f4783 100644 --- a/tools/testing/selftests/cgroup/test_core.c +++ b/tools/testing/selftests/cgroup/test_core.c @@ -198,7 +198,7 @@ static int test_cgcore_no_internal_process_constraint_on_threads(const char *roo char *parent = NULL, *child = NULL; if (cg_read_strstr(root, "cgroup.controllers", "cpu") || - cg_read_strstr(root, "cgroup.subtree_control", "cpu")) { + cg_write(root, "cgroup.subtree_control", "+cpu")) { ret = KSFT_SKIP; goto cleanup; } -- 2.19.1.856.g8858448bb