summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestRunTest.h
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-09-02 14:08:40 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-09-02 14:08:40 (GMT)
commit69fd641adb32c878ded4cadee60d90596b358d1b (patch)
treecd9885d9d8a0825b4a3bc227f78780ebf1a1e95b /Source/CTest/cmCTestRunTest.h
parent99144383cf17e188f67a5d9e3469bcf1b3a836b8 (diff)
downloadCMake-69fd641adb32c878ded4cadee60d90596b358d1b.zip
CMake-69fd641adb32c878ded4cadee60d90596b358d1b.tar.gz
CMake-69fd641adb32c878ded4cadee60d90596b358d1b.tar.bz2
Fixed ctest output where max test index is not the same width as the total number of tests. Also some preliminary changes for batching ctest jobs
Diffstat (limited to 'Source/CTest/cmCTestRunTest.h')
-rw-r--r--Source/CTest/cmCTestRunTest.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestRunTest.h b/Source/CTest/cmCTestRunTest.h
index 88a4d6b..8248b17 100644
--- a/Source/CTest/cmCTestRunTest.h
+++ b/Source/CTest/cmCTestRunTest.h
@@ -91,5 +91,18 @@ private:
std::vector<std::string> Arguments;
};
+inline int getNumWidth(int n)
+{
+ int numWidth = 1;
+ if(n >= 10)
+ {
+ numWidth = 2;
+ }
+ if(n >= 100)
+ {
+ numWidth = 3;
+ }
+ return numWidth;
+}
#endif