File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ namespace SimpleTest {
43
43
void UnitTestExecutor::setFailed (PGM_TYPE file, int line, const char *reason) {
44
44
testStatus = FAILED;
45
45
failureReason.withFileAndLine (file, line);
46
- failureReason.withReason (reason);
47
46
}
48
47
49
48
void UnitTestExecutor::init (const char *name, bool ignored) {
Original file line number Diff line number Diff line change @@ -37,31 +37,12 @@ namespace SimpleTest {
37
37
private:
38
38
PGM_TYPE file;
39
39
int line = 0 ;
40
- char reason[FAIL_REASON_SIZE];
41
40
public:
42
41
FailureInfo () {}
43
42
void withFileAndLine (PGM_TYPE f, int l) {
44
43
file = f;
45
44
line = l;
46
45
}
47
- void withReason (const char * r) {
48
- strncpy (reason, r, sizeof reason);
49
- reason[sizeof (reason)-1 ] = 0 ;
50
- }
51
-
52
- void copyFileToBuffer (char * sz, int len) const {
53
- strncpy_P (sz, (char *)file, len);
54
- sz[len-1 ] = 0 ;
55
- }
56
-
57
- void copyReasonToBuffer (char * sz, int len) const {
58
- strncpy (sz, reason, len);
59
- sz[len-1 ] = 0 ;
60
- }
61
-
62
- int getLine () const {
63
- return line;
64
- }
65
46
};
66
47
67
48
class UnitTestExecutor {
You can’t perform that action at this time.
0 commit comments