language-extensions/R/test/src/RExtensionApiTests.cpp
//----------------------------------------------------------------------------------------------
// Name: RExtensionApiTests::TearDownTestSuite
//
// Description:
//  Per-test-suite tear-down. Called after the last test in every test suite.
//  But we want to execute this only once in the entire test run after the last test suite
//  since R can be torn down only once.
//
:TearDownTestSuite
Description:
Per-test-suite tear-down. Called after the last test in every test suite.
But we want to execute this only once in the entire test run after the last test suite
since R can be torn down only once.
: TearDownTestSuite Description : Per - test - suite tear - down . Called after the last test in every test suite . But we want to execute this only once in the entire test run after the last test suite since R can be torn down only once .
void RExtensionApiTests::TearDownTestSuite()
	{
		if (sm_numberOfSuitesInitialized == TOTAL_NUMBER_OF_TEST_SUITES)
		{
			DoCleanup();
			ASSERT_NO_THROW(ReleaseHandles());
			CleanupLibPaths();
		}
	}
void RExtensionApiTests :: TearDownTestSuite ( ) { if ( sm_numberOfSuitesInitialized == TOTAL_NUMBER_OF_TEST_SUITES ) { DoCleanup ( ) ; ASSERT_NO_THROW ( ReleaseHandles ( ) ) ; CleanupLibPaths ( ) ; } }
Name: RExtensionApiTests::TearDownTestSuite
Description:
Per-test-suite tear-down.
Name : RExtensionApiTests :: TearDownTestSuite Description : Per - test - suite tear - down .
// Cleanup only if this is the last test suite. //