diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-11-15 18:55:52 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-11-15 18:55:52 +0100 |
| commit | dff8131cc1bc27c271c54b0234c1fa3fff8e3062 (patch) | |
| tree | bc8ae8bde3f9296c347628c726ad72d1fa685b4a /test/unit/test_c_api.cpp | |
| parent | 48f018f0032f4769e1ab0f09e930f5ac9040b4c9 (diff) | |
| download | PROJ-dff8131cc1bc27c271c54b0234c1fa3fff8e3062.tar.gz PROJ-dff8131cc1bc27c271c54b0234c1fa3fff8e3062.zip | |
Code reformat
Diffstat (limited to 'test/unit/test_c_api.cpp')
| -rw-r--r-- | test/unit/test_c_api.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/test_c_api.cpp b/test/unit/test_c_api.cpp index 3548293d..291d40bc 100644 --- a/test/unit/test_c_api.cpp +++ b/test/unit/test_c_api.cpp @@ -6116,8 +6116,8 @@ TEST_F(CApi, open_plenty_of_contexts) { // On some platforms fopen returned nullptrs before reaching limit - 50, we // can avoid this by capping the limit to 1024. if (open_max.rlim_cur > 1024) { - open_max.rlim_cur = 1024; - setrlimit(RLIMIT_NOFILE, &open_max); + open_max.rlim_cur = 1024; + setrlimit(RLIMIT_NOFILE, &open_max); } for (rlim_t i = 0; i < open_max.rlim_cur - 50; i++) { FILE *f = fopen("/dev/null", "rb"); |
