@@ -1751,6 +1751,54 @@ namespace EtlTests
17511751 }
17521752 }
17531753
1754+ RunTestCaseV2 (std::move (pSession), processId, processName, goldCsvFile);
1755+ goldCsvFile.Close ();
1756+ }
1757+ TEST_METHOD (Tc8v2ACSXellOnFgOn6920Ext)
1758+ {
1759+ namespace bp = boost::process;
1760+ using namespace std ::string_literals;
1761+ using namespace std ::chrono_literals;
1762+
1763+ const uint32_t processId = 6920 ;
1764+ const std::string processName = " scimitar_engine_win64_vs2022_llvm_fusion_dx12_px.exe" ;
1765+
1766+ bp::ipstream out; // Stream for reading the process's output
1767+ bp::opstream in; // Stream for writing to the process's input
1768+
1769+ const auto pipeName = R"( \\.\pipe\test-pipe-pmsvc-2)" s;
1770+ const auto introName = " PM_intro_test_nsm_2" s;
1771+ const auto etlName = " F:\\ EtlTesting\\ test_case_7.etl" ;
1772+ const auto goldCsvName = L" F:\\ EtlTesting\\ test_case_7.csv" ;
1773+
1774+ CsvParser goldCsvFile;
1775+ if (!goldCsvFile.Open (goldCsvName, processId)) {
1776+ return ;
1777+ }
1778+
1779+ oChild.emplace (" PresentMonService.exe" s,
1780+ " --timed-stop" s, " 60000" s,
1781+ " --control-pipe" s, pipeName,
1782+ " --nsm-prefix" s, " pmon_nsm_utest_" s,
1783+ " --intro-nsm" s, introName,
1784+ " --etl-test-file" s, etlName,
1785+ bp::std_out > out, bp::std_in < in);
1786+
1787+ std::this_thread::sleep_for (1000ms);
1788+
1789+ std::unique_ptr<pmapi::Session> pSession;
1790+ {
1791+ try
1792+ {
1793+ pSession = std::make_unique<pmapi::Session>(pipeName.c_str (), introName.c_str ());
1794+ }
1795+ catch (const std::exception& e) {
1796+ std::cout << " Error: " << e.what () << std::endl;
1797+ Assert::AreEqual (false , true , L" *** Connecting to service via named pipe" );
1798+ return ;
1799+ }
1800+ }
1801+
17541802 RunTestCaseV2 (std::move (pSession), processId, processName, goldCsvFile);
17551803 goldCsvFile.Close ();
17561804 }
0 commit comments