mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-15 19:48:00 +01:00
return pass/fail to environment
This commit is contained in:
parent
29a3d1f63b
commit
3c13a1af81
4 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue