diff options
author | Brad King <brad.king@kitware.com> | 2002-12-12 16:36:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-12-12 16:36:28 (GMT) |
commit | 54541bd40a6083b3969c2e2dc53292d1a67b69c2 (patch) | |
tree | af5a806a88d11cc4cf8e6779d0ad7a8610d442e8 /Source/ctest.cxx | |
parent | fe26cf51f575b30299f1ecfff112cf095a5c6f48 (diff) | |
download | CMake-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.cxx | 4 |
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; |