Browse Source

ENH: Add environment variable that Dart sets so that tests can know they are being tested from Dart/CTest

Andy Cedilnik 22 years ago
parent
commit
23ba009419
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/ctest.cxx

+ 2 - 0
Source/ctest.cxx

@@ -101,6 +101,8 @@ static const cmDocumentationEntry cmDocumentationSeeAlso[] =
 int main (int argc, char *argv[])
 {
   cmSystemTools::EnableMSVCDebugHook();
+  cmSystemTools::PutEnv("DART_TEST_FROM_DART");
+  cmSystemTools::PutEnv("DASHBOARD_TEST_FROM_CTEST");
   int nocwd = 0;
 
   if ( cmSystemTools::GetCurrentWorkingDirectory().size() == 0 )