|
45 | 45 | UT_RETHROW (UnitTest::RequiredCheckException) \
|
46 | 46 | UT_CATCH (std::exception, e, \
|
47 | 47 | { \
|
48 |
| - UnitTest::MemoryOutStream message; \ |
49 |
| - message << "Unhandled exception (" << e.what() << ") in CHECK(" #value ")"; \ |
| 48 | + UnitTest::MemoryOutStream UnitTest_message; \ |
| 49 | + UnitTest_message << "Unhandled exception (" << e.what() << ") in CHECK(" #value ")"; \ |
50 | 50 | UnitTest::CurrentTest::Results()->OnTestFailure(UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__), \
|
51 |
| - message.GetText()); \ |
| 51 | + UnitTest_message.GetText()); \ |
52 | 52 | }) \
|
53 | 53 | UT_CATCH_ALL \
|
54 | 54 | ({ \
|
|
66 | 66 | UT_RETHROW (UnitTest::RequiredCheckException) \
|
67 | 67 | UT_CATCH (std::exception, e, \
|
68 | 68 | { \
|
69 |
| - UnitTest::MemoryOutStream message; \ |
70 |
| - message << "Unhandled exception (" << e.what() << ") in CHECK_EQUAL(" #expected ", " #actual ")"; \ |
| 69 | + UnitTest::MemoryOutStream UnitTest_message; \ |
| 70 | + UnitTest_message << "Unhandled exception (" << e.what() << ") in CHECK_EQUAL(" #expected ", " #actual ")"; \ |
71 | 71 | UnitTest::CurrentTest::Results()->OnTestFailure(UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__), \
|
72 |
| - message.GetText()); \ |
| 72 | + UnitTest_message.GetText()); \ |
73 | 73 | }) \
|
74 | 74 | UT_CATCH_ALL \
|
75 | 75 | ({ \
|
|
87 | 87 | UT_RETHROW (UnitTest::RequiredCheckException) \
|
88 | 88 | UT_CATCH (std::exception, e, \
|
89 | 89 | { \
|
90 |
| - UnitTest::MemoryOutStream message; \ |
91 |
| - message << "Unhandled exception (" << e.what() << ") in CHECK_CLOSE(" #expected ", " #actual ")"; \ |
| 90 | + UnitTest::MemoryOutStream UnitTest_message; \ |
| 91 | + UnitTest_message << "Unhandled exception (" << e.what() << ") in CHECK_CLOSE(" #expected ", " #actual ")"; \ |
92 | 92 | UnitTest::CurrentTest::Results()->OnTestFailure(UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__), \
|
93 |
| - message.GetText()); \ |
| 93 | + UnitTest_message.GetText()); \ |
94 | 94 | }) \
|
95 | 95 | UT_CATCH_ALL \
|
96 | 96 | ({ \
|
|
108 | 108 | UT_RETHROW (UnitTest::RequiredCheckException) \
|
109 | 109 | UT_CATCH (std::exception, e, \
|
110 | 110 | { \
|
111 |
| - UnitTest::MemoryOutStream message; \ |
112 |
| - message << "Unhandled exception (" << e.what() << ") in CHECK_ARRAY_EQUAL(" #expected ", " #actual ")"; \ |
| 111 | + UnitTest::MemoryOutStream UnitTest_message; \ |
| 112 | + UnitTest_message << "Unhandled exception (" << e.what() << ") in CHECK_ARRAY_EQUAL(" #expected ", " #actual ")"; \ |
113 | 113 | UnitTest::CurrentTest::Results()->OnTestFailure(UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__), \
|
114 |
| - message.GetText()); \ |
| 114 | + UnitTest_message.GetText()); \ |
115 | 115 | }) \
|
116 | 116 | UT_CATCH_ALL \
|
117 | 117 | ({ \
|
|
129 | 129 | UT_RETHROW (UnitTest::RequiredCheckException) \
|
130 | 130 | UT_CATCH (std::exception, e, \
|
131 | 131 | { \
|
132 |
| - UnitTest::MemoryOutStream message; \ |
133 |
| - message << "Unhandled exception (" << e.what() << ") in CHECK_ARRAY_CLOSE(" #expected ", " #actual ")"; \ |
| 132 | + UnitTest::MemoryOutStream UnitTest_message; \ |
| 133 | + UnitTest_message << "Unhandled exception (" << e.what() << ") in CHECK_ARRAY_CLOSE(" #expected ", " #actual ")"; \ |
134 | 134 | UnitTest::CurrentTest::Results()->OnTestFailure(UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__), \
|
135 |
| - message.GetText()); \ |
| 135 | + UnitTest_message.GetText()); \ |
136 | 136 | }) \
|
137 | 137 | UT_CATCH_ALL \
|
138 | 138 | ({ \
|
|
150 | 150 | UT_RETHROW (UnitTest::RequiredCheckException) \
|
151 | 151 | UT_CATCH (std::exception, e, \
|
152 | 152 | { \
|
153 |
| - UnitTest::MemoryOutStream message; \ |
154 |
| - message << "Unhandled exception (" << e.what() << ") in CHECK_ARRAY2D_CLOSE(" #expected ", " #actual ")"; \ |
| 153 | + UnitTest::MemoryOutStream UnitTest_message; \ |
| 154 | + UnitTest_message << "Unhandled exception (" << e.what() << ") in CHECK_ARRAY2D_CLOSE(" #expected ", " #actual ")"; \ |
155 | 155 | UnitTest::CurrentTest::Results()->OnTestFailure(UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__), \
|
156 |
| - message.GetText()); \ |
| 156 | + UnitTest_message.GetText()); \ |
157 | 157 | }) \
|
158 | 158 | UT_CATCH_ALL \
|
159 | 159 | ({ \
|
|
0 commit comments