[all-commits] [llvm/llvm-project] 0f1da4: [libc] Fix readlink tests on 32-bit systems (#97850)

Mikhail R. Gadelha via All-commits all-commits at lists.llvm.org
Fri Jul 5 11:21:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f1da49b4d854ce7c6572000da3fb6cb0a1245d2
      https://github.com/llvm/llvm-project/commit/0f1da49b4d854ce7c6572000da3fb6cb0a1245d2
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2024-07-05 (Fri, 05 Jul 2024)

  Changed paths:
    M libc/test/src/unistd/CMakeLists.txt
    M libc/test/src/unistd/readlink_test.cpp
    M libc/test/src/unistd/readlinkat_test.cpp

  Log Message:
  -----------
  [libc] Fix readlink tests on 32-bit systems (#97850)

Use sizeof in a string literal instead of a CString so we get the right size when creating the buf array.

We also now use strlen(FILENAME) to get the string lenght when calling readlink and readlinkat.



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