mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 10:04:18 +00:00
13 lines
316 B
C++
13 lines
316 B
C++
|
#include "test.h"
|
||
|
#include <gtest/gtest.h>
|
||
|
|
||
|
#include <base/system.h>
|
||
|
|
||
|
CTestInfo::CTestInfo()
|
||
|
{
|
||
|
const ::testing::TestInfo *pTestInfo =
|
||
|
::testing::UnitTest::GetInstance()->current_test_info();
|
||
|
str_format(m_aFilename, sizeof(m_aFilename), "%s.%s-%d.tmp",
|
||
|
pTestInfo->test_case_name(), pTestInfo->name(), pid());
|
||
|
}
|