[all-commits] [llvm/llvm-project] f22122: [libc] Migrate sys/ tests to ErrnoCheckingTest. (#...

Alexey Samsonov via All-commits all-commits at lists.llvm.org
Wed May 28 22:18:43 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f22122aa7f3ef8e817b20bc3a42691cdbc760288
      https://github.com/llvm/llvm-project/commit/f22122aa7f3ef8e817b20bc3a42691cdbc760288
  Author: Alexey Samsonov <vonosmas at gmail.com>
  Date:   2025-05-28 (Wed, 28 May 2025)

  Changed paths:
    M libc/test/src/sys/auxv/linux/CMakeLists.txt
    M libc/test/src/sys/auxv/linux/getauxval_test.cpp
    M libc/test/src/sys/mman/linux/CMakeLists.txt
    M libc/test/src/sys/mman/linux/madvise_test.cpp
    M libc/test/src/sys/mman/linux/mincore_test.cpp
    M libc/test/src/sys/mman/linux/mlock_test.cpp
    M libc/test/src/sys/mman/linux/mmap_test.cpp
    M libc/test/src/sys/mman/linux/mprotect_test.cpp
    M libc/test/src/sys/mman/linux/mremap_test.cpp
    M libc/test/src/sys/mman/linux/msync_test.cpp
    M libc/test/src/sys/mman/linux/posix_madvise_test.cpp
    M libc/test/src/sys/mman/linux/remap_file_pages_test.cpp
    M libc/test/src/sys/mman/linux/shm_test.cpp
    M libc/test/src/sys/prctl/linux/CMakeLists.txt
    M libc/test/src/sys/prctl/linux/prctl_test.cpp
    M libc/test/src/sys/random/linux/CMakeLists.txt
    M libc/test/src/sys/random/linux/getrandom_test.cpp
    M libc/test/src/sys/resource/CMakeLists.txt
    M libc/test/src/sys/resource/getrlimit_setrlimit_test.cpp
    M libc/test/src/sys/select/CMakeLists.txt
    M libc/test/src/sys/select/select_failure_test.cpp
    M libc/test/src/sys/select/select_ui_test.cpp
    M libc/test/src/sys/sendfile/CMakeLists.txt
    M libc/test/src/sys/sendfile/sendfile_test.cpp
    M libc/test/src/sys/stat/CMakeLists.txt
    M libc/test/src/sys/stat/chmod_test.cpp
    M libc/test/src/sys/stat/fchmod_test.cpp
    M libc/test/src/sys/stat/fchmodat_test.cpp
    M libc/test/src/sys/stat/fstat_test.cpp
    M libc/test/src/sys/stat/lstat_test.cpp
    M libc/test/src/sys/stat/mkdirat_test.cpp
    M libc/test/src/sys/stat/stat_test.cpp
    M libc/test/src/sys/statvfs/linux/CMakeLists.txt
    M libc/test/src/sys/statvfs/linux/fstatvfs_test.cpp
    M libc/test/src/sys/statvfs/linux/statvfs_test.cpp
    M libc/test/src/sys/time/utimes_test.cpp
    M libc/test/src/sys/wait/CMakeLists.txt
    M libc/test/src/sys/wait/wait4_test.cpp
    M libc/test/src/sys/wait/waitpid_test.cpp

  Log Message:
  -----------
  [libc] Migrate sys/ tests to ErrnoCheckingTest. (#141871)

See PR #132823 for a previous change to sys/epoll tests, and prior
changes before that.

ErrnoCheckingTest ensures that errno is properly reset at the beginning
of the test case, and is validated at the end of it. This change removes
many instances of manual errno manipulation.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list