[libc-commits] [libc] 9638da2 - [LIBC] Fix comments / name of __sched_cpu_count tests

Noah Goldstein via libc-commits libc-commits at lists.llvm.org
Wed Apr 12 17:05:00 PDT 2023


Author: Noah Goldstein
Date: 2023-04-12T19:04:45-05:00
New Revision: 9638da200e00bd069e6dd63604e14cbafede9324

URL: https://github.com/llvm/llvm-project/commit/9638da200e00bd069e6dd63604e14cbafede9324
DIFF: https://github.com/llvm/llvm-project/commit/9638da200e00bd069e6dd63604e14cbafede9324.diff

LOG: [LIBC] Fix comments / name of __sched_cpu_count tests

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

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D148044

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/libc/test/src/sched/cpu_count_test.cpp b/libc/test/src/sched/cpu_count_test.cpp
index 1ca643ce74869..e4ad42a881205 100644
--- a/libc/test/src/sched/cpu_count_test.cpp
+++ b/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;


        


More information about the libc-commits mailing list