Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp337090yba; Wed, 15 May 2019 02:10:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYIYOlFlk6ZVsQ/8dIgv5nrodBwd5wojavYy3P48I2jGX1fI/fPq2BjreDbtKUTgJNOBmQ X-Received: by 2002:a63:8449:: with SMTP id k70mr42434446pgd.53.1557911406444; Wed, 15 May 2019 02:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557911406; cv=none; d=google.com; s=arc-20160816; b=QTgBDSFH8I5pzXJYA444JflssDEK15WGDAmkEw2or5b9o6CEsrK0gFmGRhv019AUgV 1Guj2RLX3kG25ez22n+owFFudpbaZUudU+TgU2WUAZy4NzqCyYDdJi5s83F7sYG80YFP gzstjGj1FdrBWr8DKWKay4WekmruXEQtFI9T84jw0yUhlLF6pYWrk7Kf89RSshnxuk6j tZX5esyY75gY0k0+l9Rv+OWiiTkGwHBopdwv+11Ps+TgnKKZ3CYMfiZWYI27WDxGCrh0 /ZBRxDAgM9GQITtN45QIHZ1lgrrAU4iydp51uwaNiBGZZee+m1+hO60DCbs2ZnvUq3pO 42+w== 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=epATaCHGWy0QKt5vsxdMHoRoELcvWXJ/pQ5l+scXOAE=; b=hrK3HkafsLWYkM5VtPi6BQLTaywf+eiYyKgeeQmvmanOs1eO6qDmTmURpWXya4wsBW /VGD1qc02USbUt1hFkJZVv0hYw3+BtGgvJAomM1xVdKEk0wf53TzbDY6jm38U62qt3qH /t6zWiedUkOwBmng+PYm8q7P8eVocHuJcjNMO+jsT+Sv+ClYmClZertLN1THOrruaHHW /HBM5uw16A/5pZTKDqQj6HoYmEtStz5Sj0lweheUG4V7R/FicLttzrhCyRSZ8jiNlQen QgttbugsC20ggqrtgJBmUJErNAk27mtKby2obqCBXIBSSXZmXszFBwgkSNq41zi79tih ATyw== 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 f88si1281129plf.397.2019.05.15.02.09.51; Wed, 15 May 2019 02:10:06 -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 S1726487AbfEOJIE (ORCPT + 99 others); Wed, 15 May 2019 05:08:04 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:55418 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbfEOJID (ORCPT ); Wed, 15 May 2019 05:08:03 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R401e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0TRnXhzE_1557911268; Received: from localhost(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TRnXhzE_1557911268) by smtp.aliyun-inc.com(127.0.0.1); Wed, 15 May 2019 17:07:48 +0800 From: Alex Shi To: alex.shi@linux.alibaba.com Cc: 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 3/3] kselftest/cgroup: fix incorrect test_core skip Date: Wed, 15 May 2019 17:07:04 +0800 Message-Id: <20190515090704.56929-3-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.856.g8858448bb In-Reply-To: <20190515090704.56929-1-alex.shi@linux.alibaba.com> References: <20190515090704.56929-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, then the testing is 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 --- 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