EEPROM async write bug solved. Progress bar. Popup on MODELSEL. Simu EEPROM async write.

This commit is contained in:
bsongis
2011-11-26 12:55:00 +00:00
parent 9761da9de3
commit 5e633363a9
14 changed files with 129 additions and 103 deletions
+3 -2
View File
@@ -72,7 +72,7 @@ TEST(outdezNAtt, test_unsigned) {
EXPECT_EQ(memcmp(refBuf, displayBuf, sizeof(displayBuf)), 0) << "Unsigned numbers will be bad displayed";
}
TEST(EEPROM, test1) {
TEST(EEPROM, 1000_random_writes) {
eepromFile = NULL; // in memory
RlcFile f;
uint8_t buf[1000];
@@ -80,7 +80,7 @@ TEST(EEPROM, test1) {
EeFsFormat();
for(int i=0; i<10000; i++) {
for(int i=0; i<1000; i++) {
int size = rand()%800;
for(int j=0; j<size; j++) {
buf[j] = rand() < (RAND_MAX/10000*i) ? 0 : (j&0xff);
@@ -258,6 +258,7 @@ TEST(getSwitch, nullSW) {
}
int main(int argc, char **argv) {
InitEepromThread();
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}