int run_main (int argc, ACE_TCHAR *argv[]) { ACE_START_TEST (ACE_TEXT ("Log_Msg_Test")); int status = 0; ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("**** running ostream test\n"))); // Test the <ACE_Log_Msg> abstraction wrt writing to stderr and to a // file. test_ostream (); ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%M **** running callback test\n"))); // Test the <ACE_Log_Msg> callback mechanism. test_callbacks (); ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("**** running features test\n"))); // Test various features of the <ACE_Log_Msg>. test_log_msg_features ((argc > 0 ? argv[0] : ACE_TEXT ("program"))); // Test the format specifiers // Restore this mask so diags and the shutdown message will print correctly! ACE_LOG_MSG->priority_mask (ACE_LOG_MSG->priority_mask () | LM_DEBUG | LM_ERROR, ACE_Log_Msg::PROCESS); ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("**** running format specifiers test\n"))); if (status += test_format_specs ()) { ACE_ERROR ((LM_ERROR, ACE_TEXT ("logging specifier tests failed!\n"))); status = 1; } status += test_acelib_category(); ACE_END_TEST; return status; }
int main() { static_assert(test_ctors{}(), "failed"); static_assert(test_char_conversion{}(), "failed"); static_assert(test_sizes{}(), "failed"); static_assert(test_iterators{}(), "failed"); static_assert(test_const_iterators{}(), "failed"); static_assert(test_index_op{}(), "failed"); static_assert(test_at{}(), "failed"); static_assert(test_data{}(), "failed"); static_assert(test_base_compare{}(), "failed"); static_assert(test_empty{}(), "failed"); static_assert(test_front_back{}(), "failed"); static_assert(test_max_size{}(), "failed"); static_assert(test_compare_operators{}(), "failed"); assert(test_ostream()); static_assert(test_find{}(), "failed"); }