diff options
| author | toonn <toonn@toonn.io> | 2021-11-09 14:44:57 +0100 |
|---|---|---|
| committer | toonn <toonn@toonn.io> | 2021-11-10 14:27:12 +0100 |
| commit | e29acba814738dedb3a9a0479371f896f4560c6a (patch) | |
| tree | f2c959a125e8e94d06265d65816c50bfad603505 /docs/source/development/reference/cpp | |
| parent | c20b3f6d1beaa7c5f1325d42e0f244ebaea52455 (diff) | |
| download | PROJ-e29acba814738dedb3a9a0479371f896f4560c6a.tar.gz PROJ-e29acba814738dedb3a9a0479371f896f4560c6a.zip | |
test: Make CApi test cross-platform
The test made an assumption of being able to open 1024 - 50 files. On
some platforms, like older Darwin, the default limit is only 256. To
avoid the issue entirely we retrieve the current limit for the process.
We decrease the OPEN_MAX limit if it's too high. On some platforms fopen
returned nullptrs before reaching the limit (-50) and this doesn't
happen if we decrease the limit to 1024.
Diffstat (limited to 'docs/source/development/reference/cpp')
0 files changed, 0 insertions, 0 deletions
