WIP: Stable memory and flash with limited paths

This commit is contained in:
Chad Attermann committed 2024-07-03 06:55:06 -06:00
1 parent 518db13ec8
commit bef8dbc1b0
27 files changed
+817 -366

No files matched your search

+11
View File
@@ -1,5 +1,6 @@
//#include <unity.h>
#include <Utilities/OS.h>
#include "Bytes.h"
#include "Log.h"
@@ -363,10 +364,20 @@ void testBytesResize() {
void testBytes() {
RNS::head("Running testBytes...", RNS::LOG_EXTREME);
size_t pre_memory = RNS::Utilities::OS::memory_available();
TRACE("testBytes: pre-mem: " + std::to_string(pre_memory));
testBytesMain();
testCowBytes();
testBytesConversion();
testBytesResize();
size_t post_memory = RNS::Utilities::OS::memory_available();
size_t diff_memory = (int)pre_memory - (int)post_memory;
TRACE("testBytes: post-mem: " + std::to_string(post_memory));
TRACE("testBytes: diff-mem: " + std::to_string(diff_memory));
assert(diff_memory == 0);
}
/*