[llvm] 80a1118 - [llvm-ar] Enable failed testacase on FreeBSD (#192612)

via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 18 21:17:31 PDT 2026


Author: aokblast
Date: 2026-04-19T04:17:26Z
New Revision: 80a11185b670796a8c4b4cfcf8b1e877e85e486c

URL: https://github.com/llvm/llvm-project/commit/80a11185b670796a8c4b4cfcf8b1e877e85e486c
DIFF: https://github.com/llvm/llvm-project/commit/80a11185b670796a8c4b4cfcf8b1e877e85e486c.diff

LOG: [llvm-ar] Enable failed testacase on FreeBSD (#192612)

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.

Added: 
    

Modified: 
    llvm/test/tools/llvm-ar/error-opening-directory.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-ar/error-opening-directory.test b/llvm/test/tools/llvm-ar/error-opening-directory.test
index a11600c2bb5a4..776ed08eeb7bb 100644
--- a/llvm/test/tools/llvm-ar/error-opening-directory.test
+++ b/llvm/test/tools/llvm-ar/error-opening-directory.test
@@ -1,6 +1,5 @@
-## Unsupported on AIX and FreeBSD as AIX and FreeBSD 12 and earlier allow
-## reading directories by default.
-# UNSUPPORTED: system-freebsd, system-aix
+## Unsupported on AIX as AIX allow reading directories by default.
+# UNSUPPORTED: system-aix
 
 # RUN: rm -rf %t && mkdir -p %t
 


        


More information about the llvm-commits mailing list