test/hotspot/gtest/logging/logTestFixture.cpp
changeset 51334 cc2c79d22508
parent 49360 886acec3b4c6
child 53845 1807da9ad196
equal deleted inserted replaced
51333:f6641fcf7b7e 51334:cc2c79d22508
    30 #include "memory/allocation.inline.hpp"
    30 #include "memory/allocation.inline.hpp"
    31 #include "memory/resourceArea.hpp"
    31 #include "memory/resourceArea.hpp"
    32 #include "unittest.hpp"
    32 #include "unittest.hpp"
    33 #include "utilities/ostream.hpp"
    33 #include "utilities/ostream.hpp"
    34 
    34 
    35 LogTestFixture::LogTestFixture() : _configuration_snapshot(NULL), _n_snapshots(0) {
    35 LogTestFixture::LogTestFixture() : _n_snapshots(0), _configuration_snapshot(NULL) {
    36   // Set up TestLogFileName to include PID, testcase name and test name
    36   // Set up TestLogFileName to include PID, testcase name and test name
    37   int ret = jio_snprintf(_filename, sizeof(_filename), "testlog.pid%d.%s.%s.log",
    37   int ret = jio_snprintf(_filename, sizeof(_filename), "testlog.pid%d.%s.%s.log",
    38                          os::current_process_id(),
    38                          os::current_process_id(),
    39                          ::testing::UnitTest::GetInstance()->current_test_info()->test_case_name(),
    39                          ::testing::UnitTest::GetInstance()->current_test_info()->test_case_name(),
    40                          ::testing::UnitTest::GetInstance()->current_test_info()->name());
    40                          ::testing::UnitTest::GetInstance()->current_test_info()->name());