nix-super/tests/unit/libutil
Pino Toscano a1ccf60613 tests: define fallback PATH_MAX
Few filesystem-related tests rely on PATH_MAX for buffers, and PATH_MAX
is optional in POSIX (and not available on the Hurd). To make them build
and pass, provide a fallback definition of PATH_MAX in case not
available.

Ideally speaking, the tests ought to not unconditionally rely on
PATH_MAX, do alternative strategies (e.g. dynamically allocate buffers,
expand them as needed, etc); OTOH this is test code, so it would be more
work that what it would be worth, so IMHO the define fallback is good
enough.
2024-07-30 05:34:34 +02:00
..
data/git Put back files for now 2024-07-02 09:26:22 -04:00
.version Put back files for now 2024-07-02 09:26:22 -04:00
args.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
build-utils-meson Put back files for now 2024-07-02 09:26:22 -04:00
canon-path.cc Purify CanonPath 2024-02-16 09:47:25 -05:00
chunked-vector.cc Put back files for now 2024-07-02 09:26:22 -04:00
closure.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
compression.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
config.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
file-content-address.cc Rename Recursive -> NixArchive 2024-06-24 10:24:06 -04:00
git.cc Remove comparator.hh and switch to <=> in a bunch of places 2024-07-12 14:54:18 -04:00
hash.cc Renamed HashFormat::Base32 to HashFormat::Nix32 2023-12-06 23:43:42 +01:00
hilite.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
json-utils.cc ValidPathInfo JSON format should use null not omit field 2024-06-03 08:21:22 -04:00
local.mk WIP add testresults output 2024-06-16 16:34:54 +02:00
logging.cc Rename hintfmt to HintFmt 2024-02-08 11:58:25 -08:00
lru-cache.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
meson.build Add missing threads deps 2024-07-22 11:46:54 -04:00
nix_api_util.cc Split out GlobalConfig into its own header 2024-06-24 11:36:21 -04:00
package.nix Deduplicate our many package.nix a bit (#11175) 2024-07-25 03:12:39 +00:00
pool.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
position.cc getSnippetUpTo: Return optional 2024-07-15 20:10:45 +02:00
references.cc Refactor: rename C++ concatStringsSep -> dropEmptyInitThenConcatStringsSep 2024-07-13 03:05:50 +02:00
spawn.cc Remove lookupPathForProgram and implement initial runProgram test 2024-06-18 01:01:52 -07:00
strings.cc Add fresh concatStringsSep without bug 2024-07-13 03:06:24 +02:00
suggestions.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
tests.cc tests: define fallback PATH_MAX 2024-07-30 05:34:34 +02:00
url.cc isValidSchemeName: Use regex 2023-12-12 17:46:34 +01:00
xml-writer.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00