@@ -28,23 +28,23 @@ class Test
28
28
~ReporterTAP () {}
29
29
30
30
void onTestRunInit (int numTests) {
31
- cout << " TAP version 13" << endl;
32
- cout << 1 << " .." << numTests << endl; // we know how many tests, in advance
31
+ cerr << " TAP version 13" << endl;
32
+ cerr << 1 << " .." << numTests << endl; // we know how many tests, in advance
33
33
mTestCounter = 0 ;
34
34
}
35
35
36
36
void onTestStart (TestData td) {
37
37
mAssertCounter = 0 ;
38
38
++mTestCounter ;
39
- cout << " # Subtest: " << td.name << endl;
39
+ cerr << " # Subtest: " << td.name << endl;
40
40
}
41
41
42
42
void onTestEnd (TestData td) {
43
- cout << " 1.." << mAssertCounter << endl;
43
+ cerr << " 1.." << mAssertCounter << endl;
44
44
if (td.result == RESULT_PASS) {
45
- cout << " ok " << mTestCounter << " - " << td.name << endl;
45
+ cerr << " ok " << mTestCounter << " - " << td.name << endl;
46
46
} else {
47
- cout << " not ok " << mTestCounter << " - " << td.name << endl;
47
+ cerr << " not ok " << mTestCounter << " - " << td.name << endl;
48
48
}
49
49
}
50
50
@@ -61,17 +61,17 @@ class Test
61
61
const char * rhsLabel,
62
62
const B &rhs
63
63
) {
64
- cout << " " << (pass ? " " : " not " ) << " ok " << ++mAssertCounter << " - " ;
65
- cout << description << " " << lhsLabel << " " << opLabel << " " << rhsLabel << endl;
64
+ cerr << " " << (pass ? " " : " not " ) << " ok " << ++mAssertCounter << " - " ;
65
+ cerr << description << " " << lhsLabel << " " << opLabel << " " << rhsLabel << endl;
66
66
if (!pass) {
67
- cout << " ---" << endl;
68
- cout << " operator: " << opLabel << endl;
69
- cout << " " << lhsRelevance << " : " << lhs << endl;
70
- cout << " " << rhsRelevance << " : " << rhs << endl;
71
- cout << " at:" << endl;
72
- cout << " file: " << file << endl;
73
- cout << " line: " << line << endl;
74
- cout << " ..." << endl;
67
+ cerr << " ---" << endl;
68
+ cerr << " operator: " << opLabel << endl;
69
+ cerr << " " << lhsRelevance << " : " << lhs << endl;
70
+ cerr << " " << rhsRelevance << " : " << rhs << endl;
71
+ cerr << " at:" << endl;
72
+ cerr << " file: " << file << endl;
73
+ cerr << " line: " << line << endl;
74
+ cerr << " ..." << endl;
75
75
}
76
76
}
77
77
};
0 commit comments