We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76dfd77 commit 9b657b8Copy full SHA for 9b657b8
app/tests/thread_test.cc
@@ -20,16 +20,17 @@
20
#include "gmock/gmock.h"
21
#include "gtest/gtest.h"
22
23
-#define EXPECT_THROW_ERROR_CODE(statement, error_code) \
24
- EXPECT_THROW({\
25
- try { \
+#define EXPECT_THROW_ERROR_CODE(statement, error_code) \
+ EXPECT_THROW( \
+ { \
26
+ try { \
27
GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
- } \
28
- catch(const std::system_error &exception) {\
29
- EXPECT_EQ(error_code, exception.code());\
30
- throw;\
31
- }\
32
- }, std::system_error)
+ } catch (const std::system_error& exception) { \
+ EXPECT_EQ(error_code, exception.code()); \
+ throw; \
+ } \
+ }, \
33
+ std::system_error)
34
35
namespace {
36
0 commit comments