[all-commits] [llvm/llvm-project] 4f1fe1: [libc] Make ErrnoSetterMatcher handle logging floa...

Siva Chandra via All-commits all-commits at lists.llvm.org
Thu May 25 23:25:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f1fe19df385445fabde47998affca50c7f1bc1e
      https://github.com/llvm/llvm-project/commit/4f1fe19df385445fabde47998affca50c7f1bc1e
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M libc/cmake/modules/LLVMLibCTestRules.cmake
    M libc/include/llvm-libc-macros/generic-error-number-macros.h
    M libc/test/CMakeLists.txt
    R libc/test/ErrnoSetterMatcher.h
    M libc/test/UnitTest/CMakeLists.txt
    A libc/test/UnitTest/ErrnoSetterMatcher.h
    M libc/test/src/fcntl/creat_test.cpp
    M libc/test/src/fcntl/openat_test.cpp
    M libc/test/src/sched/affinity_test.cpp
    M libc/test/src/sched/cpu_count_test.cpp
    M libc/test/src/signal/kill_test.cpp
    M libc/test/src/signal/sigaction_test.cpp
    M libc/test/src/signal/sigaddset_test.cpp
    M libc/test/src/signal/sigaltstack_test.cpp
    M libc/test/src/signal/sigdelset_test.cpp
    M libc/test/src/signal/sigfillset_test.cpp
    M libc/test/src/signal/signal_test.cpp
    M libc/test/src/signal/sigprocmask_test.cpp
    M libc/test/src/stdio/remove_test.cpp
    M libc/test/src/stdlib/CMakeLists.txt
    M libc/test/src/stdlib/atof_test.cpp
    M libc/test/src/stdlib/strtod_test.cpp
    M libc/test/src/sys/mman/linux/madvise_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/posix_madvise_test.cpp
    M libc/test/src/sys/random/linux/getrandom_test.cpp
    M libc/test/src/sys/resource/getrlimit_setrlimit_test.cpp
    M libc/test/src/sys/select/select_failure_test.cpp
    M libc/test/src/sys/sendfile/sendfile_test.cpp
    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/utsname/uname_test.cpp
    M libc/test/src/sys/wait/wait4_test.cpp
    M libc/test/src/sys/wait/waitpid_test.cpp
    M libc/test/src/termios/termios_test.cpp
    M libc/test/src/time/difftime_test.cpp
    M libc/test/src/time/gettimeofday_test.cpp
    M libc/test/src/time/gmtime_test.cpp
    M libc/test/src/time/mktime_test.cpp
    M libc/test/src/time/nanosleep_test.cpp
    M libc/test/src/unistd/access_test.cpp
    M libc/test/src/unistd/chdir_test.cpp
    M libc/test/src/unistd/dup2_test.cpp
    M libc/test/src/unistd/dup3_test.cpp
    M libc/test/src/unistd/dup_test.cpp
    M libc/test/src/unistd/fchdir_test.cpp
    M libc/test/src/unistd/ftruncate_test.cpp
    M libc/test/src/unistd/isatty_test.cpp
    M libc/test/src/unistd/link_test.cpp
    M libc/test/src/unistd/linkat_test.cpp
    M libc/test/src/unistd/lseek_test.cpp
    M libc/test/src/unistd/pread_pwrite_test.cpp
    M libc/test/src/unistd/read_write_test.cpp
    M libc/test/src/unistd/readlink_test.cpp
    M libc/test/src/unistd/readlinkat_test.cpp
    M libc/test/src/unistd/rmdir_test.cpp
    M libc/test/src/unistd/symlink_test.cpp
    M libc/test/src/unistd/symlinkat_test.cpp
    M libc/test/src/unistd/syscall_test.cpp
    M libc/test/src/unistd/truncate_test.cpp
    M libc/test/src/unistd/unlink_test.cpp
    M libc/test/src/unistd/unlinkat_test.cpp

  Log Message:
  -----------
  [libc] Make ErrnoSetterMatcher handle logging floating point values.

Along the way, couple of additional things have been done:

1. Move `ErrnoSetterMatcher.h` to `test/UnitTest` as all other matchers live
   there now.
2. `ErrnoSetterMatcher` ignores matching `errno` on GPUs.

Reviewed By: jhuber6

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




More information about the All-commits mailing list