diff --git a/ChangeLog b/ChangeLog index 57c9a3a..e99ffe5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -29,7 +29,11 @@ CHANGELOG recognition of expected errors under certain circumstances. - Fixed a portability problem (for gcc 3.3.x) in the testwave application. - Enforced that #if/#endif are balanced file wise. - +- Changed the command line arguments for the Wave testrun to use absolute + directories. +- Changed the test application to return a value != zero if one of the given + config files were not found. + Thu Apr 7 10:07:45 WEDT 2005 Version 1.1.16 - Fixed a bug in the white space eating component, which prevented a C++ diff --git a/test/testwave/testwave.cpp b/test/testwave/testwave.cpp index 4570c48..6aecb3c 100644 --- a/test/testwave/testwave.cpp +++ b/test/testwave/testwave.cpp @@ -47,6 +47,7 @@ int main(int argc, char *argv[]) { int error_count = 0; + int config_file_error_count = 0; try { // analyze the command line options and arguments po::options_description desc_cmdline ("Options allowed on the command line"); @@ -129,7 +130,8 @@ main(int argc, char *argv[]) // parse a single config file and store the results, config files // may only contain --input and positional arguments po::variables_map cvm; - cmd_line_utils::read_config_file(*cit, desc_hidden, cvm); + if (!cmd_line_utils::read_config_file(*cit, desc_hidden, cvm)) + ++config_file_error_count; // correct the paths parsed into this variables_map if (cvm.count("input")) { @@ -198,5 +200,5 @@ main(int argc, char *argv[]) return (std::numeric_limits::max)() - 2; } - return error_count; + return error_count + config_file_error_count; }