Skip to content

Commit eed52a0

Browse files
committed
Replace default_handlers value by a reference.
1 parent 4bf28d4 commit eed52a0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

features/frameworks/utest/source/utest_default_handlers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const handlers_t utest::v1::verbose_continue_handlers = {
3434
verbose_case_failure_handler
3535
};
3636

37+
const handlers_t& utest::v1::default_handlers = greentea_abort_handlers;
3738

3839
// --- SPECIAL HANDLERS ---
3940
static void test_failure_handler(const failure_t failure) {

features/frameworks/utest/utest/utest_default_handlers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ namespace v1 {
185185
extern const handlers_t selftest_handlers;
186186

187187
/// The greentea aborting handlers are the default
188-
const handlers_t default_handlers = greentea_abort_handlers;
188+
extern const handlers_t& default_handlers;
189189

190190
} // namespace v1
191191
} // namespace utest

0 commit comments

Comments
 (0)