return pass/fail to environment

This commit is contained in:
jez 2007-12-08 20:47:53 +00:00
parent 29a3d1f63b
commit 3c13a1af81
4 changed files with 8 additions and 8 deletions

View file

@ -10,7 +10,7 @@
#include "test_uri.hpp"
template<class string_type, class string_adaptor>
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

View file

@ -7,9 +7,9 @@
////////////////////////////////////////////////
int main(int argc, const char* argv[])
{
Util_test_suite<std::string, Arabica::default_string_adaptor<std::string> >(argc, argv);
bool ok = Util_test_suite<std::string, Arabica::default_string_adaptor<std::string> >(argc, argv);
return 0;
return !ok;
} // main
// end of file

View file

@ -8,9 +8,9 @@
////////////////////////////////////////////////
int main(int argc, const char* argv[])
{
Util_test_suite<silly_string, silly_string_adaptor>(argc, argv);
bool ok = Util_test_suite<silly_string, silly_string_adaptor>(argc, argv);
return 0;
return !ok;
} // main
// end of file

View file

@ -7,9 +7,9 @@
////////////////////////////////////////////////
int main(int argc, const char* argv[])
{
Util_test_suite<std::wstring, Arabica::default_string_adaptor<std::wstring> >(argc, argv);
bool ok = Util_test_suite<std::wstring, Arabica::default_string_adaptor<std::wstring> >(argc, argv);
return 0;
return !ok;
} // main
// end of file