Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4486034yba; Sun, 19 May 2019 20:58:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/SgHwbFyQL8oqZQTnYZ5YSOOT2P5bhm6ULHSuzlSvdtQSh6mfH2TkJjh7gSONi+MLJH3e X-Received: by 2002:a65:41c7:: with SMTP id b7mr48753477pgq.165.1558324682637; Sun, 19 May 2019 20:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558324682; cv=none; d=google.com; s=arc-20160816; b=IbPJNw6K3epGJ4F2DXTRsuJL436GLuMA17KoFj/lg+klFHByMApJD3i6/3QO+64zXp UVRTJlqpIE4lGRdwaUxIsC/Kru3QpJlVunauX+pmBOWCYsy+cPtiP1DG+g/P8fa9jj6C eoGZMxxQlE/lxuiiSZzAXyZiK+jOySYlgCZEEySx0E1id+x6KaT4bOez6fNl91hhjZnh jEAF1xU/YQ+pzkNVkmNPmy/Q+RGa6+bnXGVaS+j3zQU+j+egEiICw4j1XokpI5spr79+ 3pxpT3VcgZG9h5tdP5jkFAWwNjN2mHUfU6R/NrXnWJhJnG781J+eBgNuPy8YEIQ3/kJT 2QLw== 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=swvPLxV1baFC1lhn+KlLo/y0pWVXwfPYIF1ZDlT34zc=; b=piXXZglaJG0YH31E77QkRVIoaq3pWwW3EV83jbC5xIQckz6BgGgw+FwH3/zKaDqY6d f5wEfCNiMcxUj/+5qg9zNyG2nfxdWJOKRVDBOfqVPlMjtlEEhEu9U2wLlWFD/pT3D92j hNESSX637p6RxTTZwaFBT2hTIxWEV0FNrxtGuNfYYb8lRt+Hkwx6kEygXmhhf6g0b1nI 6wJdvEC+wNy1pJQH5uBc2Niu8WFN7bh3Mi/JI7SEqSprfwKj2nQMTnhcrwW8rOkzcYrk rLx+WShk309ttvGgdAp72ZSgw+awmBDTADSW4aqhvpXhe6m6JBHoc3GXAB+x7gWzVfRR Cg4Q== 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 q3si15781024pgc.116.2019.05.19.20.57.47; Sun, 19 May 2019 20:58:02 -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 S1730175AbfETDCE (ORCPT + 99 others); Sun, 19 May 2019 23:02:04 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:38541 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfETDCA (ORCPT ); Sun, 19 May 2019 23:02:00 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R391e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07486;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0TSB-E6b_1558321317; Received: from localhost(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TSB-E6b_1558321317) by smtp.aliyun-inc.com(127.0.0.1); Mon, 20 May 2019 11:01:57 +0800 From: Alex Shi To: cgroups@vger.kernel.org Cc: Alex Shi , Shuah Khan , Tejun Heo , Roman Gushchin , Claudio Zumbo , Claudio , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] kselftest/cgroup: fix incorrect test_core skip Date: Mon, 20 May 2019 11:01:40 +0800 Message-Id: <20190520030140.203605-4-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.856.g8858448bb In-Reply-To: <20190520030140.203605-1-alex.shi@linux.alibaba.com> References: <20190520030140.203605-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 --- 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 b1a570d7c557..2ffc3e07d98d 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