MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / TerminateAfterTimedTest

Function TerminateAfterTimedTest

Tests/CommandLineTests.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace {
16
17void TerminateAfterTimedTest(uint32_t timed, DWORD timeoutMilliseconds)
18{
19 wchar_t timedArg[128];
20 _snwprintf_s(timedArg, _TRUNCATE, L"%u", timed);
21
22 PresentMon pm;
23 pm.Add(L"--stop_existing_session --terminate_after_timed --timed");
24 pm.Add(timedArg);
25 pm.PMSTART();
26 pm.PMEXITED(timeoutMilliseconds, 0);
27
28 // We don't check the CSV... it's ok if buffers drain adn we get more data
29}
30
31void TerminateExistingTest(wchar_t const* sessionName)
32{

Callers 1

TESTFunction · 0.85

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected