projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the getSystemPath function that returns a list of string containig the path
[bertos.git]
/
bertos
/
fs
/
battfs_test.c
diff --git
a/bertos/fs/battfs_test.c
b/bertos/fs/battfs_test.c
index 5d75e8331e9c8a8043a2c66279d0e4cda941c89e..642e6d6423b179c60ee777f76a53c27cbc50b279 100644
(file)
--- a/
bertos/fs/battfs_test.c
+++ b/
bertos/fs/battfs_test.c
@@
-167,8
+167,9
@@
static void testCheck(BattFsSuper *disk, pgcnt_t *reference)
exit(2);
}
}
exit(2);
}
}
+
ASSERT(battfs_fsck(disk));
ASSERT(battfs_fsck(disk));
-
battfs_umount(disk
);
+
ASSERT(battfs_umount(disk)
);
}
static void diskNew(BattFsSuper *disk)
}
static void diskNew(BattFsSuper *disk)
@@
-1068,10
+1069,7
@@
static void openAllFiles(BattFsSuper *disk)
ASSERT(battfs_mount(disk));
ASSERT(battfs_fsck(disk));
for (unsigned i = 0; i < countof(fd); i++)
ASSERT(battfs_mount(disk));
ASSERT(battfs_fsck(disk));
for (unsigned i = 0; i < countof(fd); i++)
- {
- kprintf("apertura %d\n", i);
ASSERT(battfs_fileopen(disk, &fd[i], i, MODE));
ASSERT(battfs_fileopen(disk, &fd[i], i, MODE));
- }
ASSERT(battfs_fsck(disk));
ASSERT(battfs_fsck(disk));
@@
-1146,12
+1144,6
@@
int battfs_testTearDown(void)
return 0;
}
return 0;
}
-TEST_MAIN(battfs)
-
-#include <fs/battfs.c>
-#include <kern/kfile.c>
-#include <drv/kdebug.c>
-#include <mware/formatwr.c>
-#include <mware/hex.c>
+TEST_MAIN(battfs);
#endif // _TEST
#endif // _TEST