diff --git a/dynare++/integ/testing/tests.cc b/dynare++/integ/testing/tests.cc index aae8651c9..fdb5bbd0c 100644 --- a/dynare++/integ/testing/tests.cc +++ b/dynare++/integ/testing/tests.cc @@ -484,10 +484,9 @@ main() all_tests.push_back(std::make_unique()); all_tests.push_back(std::make_unique()); all_tests.push_back(std::make_unique()); - /* - all_tests.push_back(make_unique()); - all_tests.push_back(make_unique()); - */ + all_tests.push_back(std::make_unique()); + all_tests.push_back(std::make_unique()); + // find maximum dimension and maximum nvar int dmax = 0; int nvmax = 0; @@ -522,8 +521,12 @@ main() } } - std::cout << "There were " << all_tests.size() - success << " tests that failed out of " + int nfailed = all_tests.size() - success; + std::cout << "There were " << nfailed << " tests that failed out of " << all_tests.size() << " tests run." << std::endl; - return EXIT_SUCCESS; + if (nfailed) + return EXIT_FAILURE; + else + return EXIT_SUCCESS; }