You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 08:39:09 UTC
svn commit: r1131942 - /incubator/mesos/trunk/src/tests/external_test.cpp
Author: benh
Date: Sun Jun 5 06:39:09 2011
New Revision: 1131942
URL: http://svn.apache.org/viewvc?rev=1131942&view=rev
Log:
Bug fix for external tests that are disabled: do not search for
the DISABLED_ prefix when looking for the test's script
Modified:
incubator/mesos/trunk/src/tests/external_test.cpp
Modified: incubator/mesos/trunk/src/tests/external_test.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/tests/external_test.cpp?rev=1131942&r1=1131941&r2=1131942&view=diff
==============================================================================
--- incubator/mesos/trunk/src/tests/external_test.cpp (original)
+++ incubator/mesos/trunk/src/tests/external_test.cpp Sun Jun 5 06:39:09 2011
@@ -24,6 +24,9 @@ using namespace mesos::internal::test;
void mesos::internal::test::runExternalTest(const char* testCase,
const char* testName)
{
+ // Remove DISABLED_ prefix from test name if this is a disabled test
+ if (strncmp(testName, "DISABLED_", strlen("DISABLED_")) == 0)
+ testName += strlen("DISABLED_");
// Create and go into the test's work directory
enterTestDirectory(testCase, testName);
// Figure out the absolute path to the test script