summaryrefslogtreecommitdiffstats
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-12-12 16:36:28 (GMT)
committerBrad King <brad.king@kitware.com>2002-12-12 16:36:28 (GMT)
commit54541bd40a6083b3969c2e2dc53292d1a67b69c2 (patch)
treeaf5a806a88d11cc4cf8e6779d0ad7a8610d442e8 /Source/ctest.cxx
parentfe26cf51f575b30299f1ecfff112cf095a5c6f48 (diff)
downloadCMake-54541bd40a6083b3969c2e2dc53292d1a67b69c2.zip
CMake-54541bd40a6083b3969c2e2dc53292d1a67b69c2.tar.gz
CMake-54541bd40a6083b3969c2e2dc53292d1a67b69c2.tar.bz2
ENH: Improved filename/line number reporting in error message. Macro invocations now chain up the error message.
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index 20a183e..e88cadc 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -1102,6 +1102,7 @@ void ctest::ProcessDirectory(std::vector<std::string> &passed,
}
int firstTest = 1;
+ long line = 0;
std::string name;
std::vector<std::string> args;
@@ -1113,7 +1114,8 @@ void ctest::ProcessDirectory(std::vector<std::string> &passed,
while ( fin )
{
cmListFileFunction lff;
- if(cmListFileCache::ParseFunction(fin, lff, "DartTestfile.txt", parseError))
+ if(cmListFileCache::ParseFunction(fin, lff, "DartTestfile.txt",
+ parseError, line))
{
const std::string& name = lff.m_Name;
const std::vector<cmListFileArgument>& args = lff.m_Arguments;