Skip to content

Commit 12c36bf

Browse files
committed
Fix for AVR memory usage
1 parent a7e203d commit 12c36bf

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/testing/SimpleTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ namespace SimpleTest {
4343
void UnitTestExecutor::setFailed(PGM_TYPE file, int line, const char *reason) {
4444
testStatus = FAILED;
4545
failureReason.withFileAndLine(file, line);
46-
failureReason.withReason(reason);
4746
}
4847

4948
void UnitTestExecutor::init(const char *name, bool ignored) {

src/testing/SimpleTest.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,12 @@ namespace SimpleTest {
3737
private:
3838
PGM_TYPE file;
3939
int line = 0;
40-
char reason[FAIL_REASON_SIZE];
4140
public:
4241
FailureInfo() {}
4342
void withFileAndLine(PGM_TYPE f, int l) {
4443
file = f;
4544
line = l;
4645
}
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-
}
6546
};
6647

6748
class UnitTestExecutor {

0 commit comments

Comments
 (0)