From dff8131cc1bc27c271c54b0234c1fa3fff8e3062 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 15 Nov 2021 18:55:52 +0100 Subject: Code reformat --- test/unit/test_c_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit/test_c_api.cpp') 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"); -- cgit v1.2.3