K 10 svn:author V 4 ngie K 8 svn:date V 27 2019-03-22T19:15:14.856361Z K 7 svn:log V 526 Fix a -Wdangling-else issue with g++ g++ fails to compile capability-fd.cc with the following issues, ad nauseum: ``` contrib/capsicum-test/capability-fd.cc: In function 'void TryDirOps(int, cap_rights_t)': contrib/capsicum-test/capability-fd.cc:716:6: error: suggest explicit braces to avoid ambiguous 'else' [-Werror=dangling-else] if (rc >= 0) EXPECT_OK(close(rc)); ``` Wrap the `EXPECT_OK(..)` macro with do-while so it's properly treated like a code block, as `EXPECT_LT(..)` expands to a much larger block of code. END