[all-commits] [llvm/llvm-project] 46f6e6: [LLVM][Support] Fix tests on Cygwin (#151417)

jeremyd2019 via All-commits all-commits at lists.llvm.org
Fri Aug 1 10:35:30 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46f6e62eb9ea01e43ec45961e68c22f9c00b0a27
      https://github.com/llvm/llvm-project/commit/46f6e62eb9ea01e43ec45961e68c22f9c00b0a27
  Author: jeremyd2019 <github at jdrake.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M llvm/unittests/Support/CommandLineTest.cpp
    M llvm/unittests/Support/DynamicLibrary/PipSqueak.h
    M llvm/unittests/Support/VirtualFileSystemTest.cpp

  Log Message:
  -----------
  [LLVM][Support] Fix tests on Cygwin (#151417)

Cygwin returns -1 for `getconf(_SC_ARG_MAX)`, which makes
`llvm::sys::commandLineFitsWithinSystemLimits` always return true, so
skip the `ArgumentLimit` test in that case. Skip the
`ArgumentLimitWindows` and `ResponseFileWindows` tests on Cygwin also as
it doesn't suffer from the Windows limits either.

Cygwin requires the same `dllexport` annotation as Win32 in the
`DynamicLibrary` test, so add its preprocessor check to PipSqueak.h.

Cygwin's `getcwd` function does not fail with `ENOENT` if the current
working directory is unlinked. According to POSIX issue 8, this is not
required. Skip the `PhysicalFileSystemWorkingDirFailure` test on Cygwin
as it relies on this behavior.



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