< prev index next >

test/native/logging/test_logTagSetDescriptions.cpp

Print this page
rev 12483 : 8172098: A lot of gtests uses TEST instead of TEST_VM
Reviewed-by: duke

*** 28,38 **** #include "logging/logTagSetDescriptions.hpp" #include "memory/resourceArea.hpp" #include "unittest.hpp" #include "utilities/ostream.hpp" ! TEST(LogTagSetDescriptions, describe) { for (LogTagSetDescription* d = tagset_descriptions; d->tagset != NULL; d++) { char expected[1 * K]; d->tagset->label(expected, sizeof(expected), "+"); jio_snprintf(expected + strlen(expected), sizeof(expected) - strlen(expected), --- 28,38 ---- #include "logging/logTagSetDescriptions.hpp" #include "memory/resourceArea.hpp" #include "unittest.hpp" #include "utilities/ostream.hpp" ! TEST_VM(LogTagSetDescriptions, describe) { for (LogTagSetDescription* d = tagset_descriptions; d->tagset != NULL; d++) { char expected[1 * K]; d->tagset->label(expected, sizeof(expected), "+"); jio_snprintf(expected + strlen(expected), sizeof(expected) - strlen(expected),
*** 44,54 **** EXPECT_PRED2(string_contains_substring, stream.as_string(), expected) << "missing log tag set descriptions in LogConfiguration::describe"; } } ! TEST(LogTagSetDescriptions, command_line_help) { const char* filename = "logtagset_descriptions"; FILE* fp = fopen(filename, "w+"); ASSERT_NE((void*)NULL, fp); LogConfiguration::print_command_line_help(fp); fclose(fp); --- 44,54 ---- EXPECT_PRED2(string_contains_substring, stream.as_string(), expected) << "missing log tag set descriptions in LogConfiguration::describe"; } } ! TEST_VM(LogTagSetDescriptions, command_line_help) { const char* filename = "logtagset_descriptions"; FILE* fp = fopen(filename, "w+"); ASSERT_NE((void*)NULL, fp); LogConfiguration::print_command_line_help(fp); fclose(fp);
< prev index next >