From 3c13a1af8159b53865957b81a43962553f94e888 Mon Sep 17 00:00:00 2001 From: jez <> Date: Sat, 8 Dec 2007 20:47:53 +0000 Subject: [PATCH] return pass/fail to environment --- tests/Utils/util_test_suite.hpp | 4 ++-- tests/Utils/utils_test.cpp | 4 ++-- tests/Utils/utils_test_silly.cpp | 4 ++-- tests/Utils/utils_test_wide.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Utils/util_test_suite.hpp b/tests/Utils/util_test_suite.hpp index 5a5b04b3..fb209643 100644 --- a/tests/Utils/util_test_suite.hpp +++ b/tests/Utils/util_test_suite.hpp @@ -10,7 +10,7 @@ #include "test_uri.hpp" template -void Util_test_suite(int argc, const char** argv) +bool Util_test_suite(int argc, const char** argv) { TestRunner runner; @@ -18,7 +18,7 @@ void Util_test_suite(int argc, const char** argv) runner.addTest("Base64Test", Base64Test_suite()); runner.addTest("URITest", URITest_suite()); - runner.run(argc, argv); + return runner.run(argc, argv); } // main #endif diff --git a/tests/Utils/utils_test.cpp b/tests/Utils/utils_test.cpp index 87b66b47..1a3dc78c 100644 --- a/tests/Utils/utils_test.cpp +++ b/tests/Utils/utils_test.cpp @@ -7,9 +7,9 @@ //////////////////////////////////////////////// int main(int argc, const char* argv[]) { - Util_test_suite >(argc, argv); + bool ok = Util_test_suite >(argc, argv); - return 0; + return !ok; } // main // end of file diff --git a/tests/Utils/utils_test_silly.cpp b/tests/Utils/utils_test_silly.cpp index 3b30fce8..c1c9e132 100644 --- a/tests/Utils/utils_test_silly.cpp +++ b/tests/Utils/utils_test_silly.cpp @@ -8,9 +8,9 @@ //////////////////////////////////////////////// int main(int argc, const char* argv[]) { - Util_test_suite(argc, argv); + bool ok = Util_test_suite(argc, argv); - return 0; + return !ok; } // main // end of file diff --git a/tests/Utils/utils_test_wide.cpp b/tests/Utils/utils_test_wide.cpp index 345e81d4..27810622 100644 --- a/tests/Utils/utils_test_wide.cpp +++ b/tests/Utils/utils_test_wide.cpp @@ -7,9 +7,9 @@ //////////////////////////////////////////////// int main(int argc, const char* argv[]) { - Util_test_suite >(argc, argv); + bool ok = Util_test_suite >(argc, argv); - return 0; + return !ok; } // main // end of file