MCPcopy Create free account
hub / github.com/beefytech/Beef / Test_Init

Method Test_Init

BeefRT/rt/Internal.cpp:734–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

732}
733
734void Internal::Test_Init(char* testData)
735{
736 BfpSystem_SetCrashReportKind(BfpCrashReportKind_None);
737
738 Beefy::String args = GetCommandLineArgs();
739
740 BfpFileResult fileResult;
741 gClientPipe = BfpFile_Create(args.c_str(), BfpFileCreateKind_OpenExisting, (BfpFileCreateFlags)(BfpFileCreateFlag_Read | BfpFileCreateFlag_Write | BfpFileCreateFlag_Pipe), BfpFileAttribute_None, &fileResult);
742 if (fileResult != BfpFileResult_Ok)
743 BF_FATAL("Test_Init failed to create pipe to test manager");
744
745 gClientPipeErrorFunc = TestFailed;
746
747 Beefy::String outStr;
748 outStr += ":TestInit\n";
749 outStr += testData;
750 outStr += "\n";
751 outStr += ":TestBegin\n";
752 TestString(outStr);
753}
754
755void Internal::Test_Error(char* error)
756{

Callers

nothing calls this directly

Calls 3

TestStringFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected