[libc-commits] [PATCH] D148044: [LIBC] Fix comments / name of __sched_cpu_count tests

Noah Goldstein via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Apr 11 13:39:56 PDT 2023


goldstein.w.n created this revision.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
goldstein.w.n requested review of this revision.

Test was incorrectly named/commented after the sched_{set|get}affinity
functions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148044

Files:
  libc/test/src/sched/cpu_count_test.cpp


Index: libc/test/src/sched/cpu_count_test.cpp
===================================================================
--- libc/test/src/sched/cpu_count_test.cpp
+++ libc/test/src/sched/cpu_count_test.cpp
@@ -1,4 +1,4 @@
-//===-- Unittests for sched_getaffinity and sched_setaffinity -------------===//
+//===-- Unittests for sched_cpu_count -------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -15,7 +15,7 @@
 #include <sched.h>
 #include <sys/syscall.h>
 
-TEST(LlvmLibcSchedAffinityTest, SmokeTest) {
+TEST(LlvmLibcSchedCpuCountTest, SmokeTest) {
   cpu_set_t mask;
   libc_errno = 0;
   using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148044.512568.patch
Type: text/x-patch
Size: 785 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230411/95279c7a/attachment.bin>


More information about the libc-commits mailing list