[all-commits] [llvm/llvm-project] b58a2f: [llvm-ar] Enable failed testacase on FreeBSD

aokblast via All-commits all-commits at lists.llvm.org
Sat Apr 18 20:39:24 PDT 2026


  Branch: refs/heads/users/aokblast/llvm/enable_ar_test
  Home:   https://github.com/llvm/llvm-project
  Commit: b58a2f178cd612afea0cde401665a2fa347574ad
      https://github.com/llvm/llvm-project/commit/b58a2f178cd612afea0cde401665a2fa347574ad
  Author: ShengYi Hung <aokblast at FreeBSD.org>
  Date:   2026-04-19 (Sun, 19 Apr 2026)

  Changed paths:
    M llvm/test/tools/llvm-ar/error-opening-directory.test

  Log Message:
  -----------
  [llvm-ar] Enable failed testacase on FreeBSD

FreeBSD used to allow the read system call on directory file descriptors
(dirfd). In those cases, it returned the internal file data structure
instead of failing. This caused the llvm-ar test— which expects a
failure when attempting to read a directory— to pass incorrectly.

This behavior existed for compatibility with older Unix implementations,
but it was removed in commit dcef4f65ae3978c50eab745f67364db4660a9f43.
The change applies to FreeBSD 13 and later. Since FreeBSD 12 has also
reached end-of-life, the outdated behavior is no longer relevant.

As a result, the test now behaves as intended and can be safely
re-enabled.



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