fix - re-add log flush to srsran_assert

This commit is contained in:
Francisco 2021-04-20 14:34:31 +01:00 committed by Francisco Paisana
parent 63913ff2b2
commit ce47cf5910
2 changed files with 3 additions and 3 deletions

View File

@ -20,6 +20,7 @@
#define srsran_terminate(fmt, ...) \ #define srsran_terminate(fmt, ...) \
std::fprintf(stderr, "%s:%d: " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__); \ std::fprintf(stderr, "%s:%d: " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
srslog::flush(); \
std::abort() std::abort()
#ifdef ASSERTS_ENABLED #ifdef ASSERTS_ENABLED
@ -60,9 +61,7 @@
do { \ do { \
} while (0) } while (0)
#define srsran_expect(condition, fmt, ...) \ #define srsran_expect(condition, fmt, ...) srsran_assert(condition, fmt, ##__VA_ARGS__)
do { \
} while (0)
#endif #endif

View File

@ -46,6 +46,7 @@ add_executable(bcd_helpers_test bcd_helpers_test.cc)
target_link_libraries(bcd_helpers_test srsran_common) target_link_libraries(bcd_helpers_test srsran_common)
add_executable(stack_procedure_test stack_procedure_test.cc) add_executable(stack_procedure_test stack_procedure_test.cc)
target_link_libraries(stack_procedure_test srsran_common)
add_test(stack_procedure_test stack_procedure_test) add_test(stack_procedure_test stack_procedure_test)
add_executable(queue_test multiqueue_test.cc) add_executable(queue_test multiqueue_test.cc)