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()); |