File: main.cpp

package info (click to toggle)
libtut 0.0.20070706-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,144 kB
  • sloc: cpp: 3,588; xml: 137; makefile: 18; ansic: 9
file content (42 lines) | stat: -rw-r--r-- 712 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <iostream>
#include <exception>

#include <tut/tut_restartable.hpp>
#include <tut/tut_reporter.hpp>

using std::cerr;
using std::endl;
using std::exception;

using tut::reporter;
using tut::restartable_wrapper;

namespace tut
{
    
test_runner_singleton runner;

}

int main()
{
    cerr << "NB: this application will be terminated by OS four times\n"
        "before you'll get test results, be patient restarting it.\n";

    try
    {
        reporter visi;
        restartable_wrapper restartable;

        restartable.set_callback(&visi);
        restartable.run_tests();
    }
    catch (const exception& ex)
    {
        cerr << "tut raised ex: " << ex.what() << endl;
    }

    return 0;
}