MCPcopy Create free account
hub / github.com/SoarGroup/Soar / testMultipleKernels

Method testMultipleKernels

Tests/UnitTests/src/misctests.cpp:362–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362void MiscTest::testMultipleKernels()
363{
364 sml::Kernel* pKernel2 = sml::Kernel::CreateKernelInNewThread(sml::Kernel::kDefaultSMLPort - 1);
365 CPPUNIT_ASSERT(pKernel2 != NULL);
366 CPPUNIT_ASSERT_MESSAGE(pKernel2->GetLastErrorDescription(), !pKernel2->HadError());
367
368 sml::Agent* pAgent2 = pKernel2->CreateAgent("soar2");
369 CPPUNIT_ASSERT(pAgent2 != NULL);
370
371 pKernel2->Shutdown();
372 delete pKernel2;
373
374 pAgent->ExecuteCommandLine("p s1");
375 CPPUNIT_ASSERT(pAgent->GetLastCommandLineResult());
376}
377
378void MiscTest::testSmemArithmetic()
379{

Callers

nothing calls this directly

Calls 6

CreateAgentMethod · 0.80
HadErrorMethod · 0.45
ShutdownMethod · 0.45
ExecuteCommandLineMethod · 0.45

Tested by

no test coverage detected