]> git.tdb.fi Git - ext/sigc++-2.0.git/blob - tests/test_custom.cc
Adjust the name of the library to match upstream
[ext/sigc++-2.0.git] / tests / test_custom.cc
1 // Write your custom tests here so you don't have to think about how to compile
2 // and execute your test code against the exact same library that you are
3 // currently hacking.
4
5 #include "testutilities.h"
6 #include <sstream>
7 #include <cstdlib>
8 #include <sigc++/sigc++.h>
9
10 namespace
11 {
12 std::ostringstream result_stream;
13
14 } // end anonymous namespace
15
16 int main(int argc, char* argv[])
17 {
18   auto util = TestUtilities::get_instance();
19
20   if (!util->check_command_args(argc, argv))
21     return util->get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;
22
23   result_stream << "Example result string";
24   util->check_result(result_stream, "Example result string");
25
26   return util->get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;
27 }