Commit aaa56e1
committed
[LLVM][Support] Fix tests on Cygwin
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 on Cygwin as it
relies on this behavior.1 parent 1bf89e9 commit aaa56e1
File tree
3 files changed
+23
-5
lines changed- llvm/unittests/Support
- DynamicLibrary
3 files changed
+23
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
834 | 837 | | |
835 | 838 | | |
836 | 839 | | |
837 | | - | |
838 | | - | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
839 | 849 | | |
840 | 850 | | |
841 | 851 | | |
842 | 852 | | |
843 | 853 | | |
844 | | - | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
845 | 857 | | |
846 | 858 | | |
847 | 859 | | |
| |||
854 | 866 | | |
855 | 867 | | |
856 | 868 | | |
857 | | - | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
858 | 872 | | |
859 | 873 | | |
860 | 874 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
561 | 565 | | |
562 | 566 | | |
563 | 567 | | |
| |||
0 commit comments