language-extensions/R/test/src/RExtensionApiTests.cpp
//----------------------------------------------------------------------------------------------
// Name: RExtensionApiTests::SetUpTestSuite
//
// Description:
//  Per-test-suite set-up. Called before the first test in every test suite.
//  But we want to execute this only once in the entire test run before the first test suite
//  since R can be initialized only once.
//
:SetUpTestSuite
Description:
Per-test-suite set-up. Called before the first test in every test suite.
But we want to execute this only once in the entire test run before the first test suite
since R can be initialized only once.
: SetUpTestSuite Description : Per - test - suite set - up . Called before the first test in every test suite . But we want to execute this only once in the entire test run before the first test suite since R can be initialized only once .
void RExtensionApiTests::SetUpTestSuite()
	{
		if (sm_numberOfSuitesInitialized == 0)
		{
			 Set and Create the library paths before initialization of R environment
			 so that they get added to libPaths.
			SetupLibPaths();
			CreateLibPaths();
			ASSERT_NO_THROW(GetHandles());
			DoInit();
		}
		++sm_numberOfSuitesInitialized;
	}
void RExtensionApiTests :: SetUpTestSuite ( ) { if ( sm_numberOfSuitesInitialized == 0 ) { SetupLibPaths ( ) ; CreateLibPaths ( ) ; ASSERT_NO_THROW ( GetHandles ( ) ) ; DoInit ( ) ; } ++ sm_numberOfSuitesInitialized ; }
Name: RExtensionApiTests::SetUpTestSuite
Description:
Per-test-suite set-up.
Name : RExtensionApiTests :: SetUpTestSuite Description : Per - test - suite set - up .
// Initialize only if this is the first test suite. // // Set and Create the library paths before initialization of R environment // so that they get added to libPaths. //