aboutsummaryrefslogtreecommitdiff
path: root/docs/source/development/reference/cpp
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-11-09 14:44:57 +0100
committertoonn <toonn@toonn.io>2021-11-10 14:27:12 +0100
commite29acba814738dedb3a9a0479371f896f4560c6a (patch)
treef2c959a125e8e94d06265d65816c50bfad603505 /docs/source/development/reference/cpp
parentc20b3f6d1beaa7c5f1325d42e0f244ebaea52455 (diff)
downloadPROJ-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