summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 56ddec7..d314052 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -86,6 +86,12 @@ bool cmCTestSubdirCommand
fname += "/";
fname += *it;
+ //sanity check on relative path; if not, try absolute path
+ if ( !cmSystemTools::FileIsDirectory(fname.c_str()))
+ {
+ fname = *it;
+ }
+
if ( !cmSystemTools::FileExists(fname.c_str()) )
{
// No subdirectory? So what...