projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Changes to direct tests
[yaffs2.git]
/
direct
/
tests
/
nor_stress.c
diff --git
a/direct/tests/nor_stress.c
b/direct/tests/nor_stress.c
index 3802837130d997e1f34840ddcdc2b3c470fb9094..6f6b4ce583c74fee117a81d5fe041b3a98510797 100644
(file)
--- a/
direct/tests/nor_stress.c
+++ b/
direct/tests/nor_stress.c
@@
-182,6
+182,7
@@
static void dump_directory_tree_worker(const char *dname,int recursive)
struct yaffs_stat s;
char str[1000];
int error_line = 0;
struct yaffs_stat s;
char str[1000];
int error_line = 0;
+ int nentries;
d = yaffs_opendir(dname);
d = yaffs_opendir(dname);
@@
-191,11
+192,13
@@
static void dump_directory_tree_worker(const char *dname,int recursive)
}
else
{
}
else
{
+ nentries = 0;
while((de = yaffs_readdir(d)) != NULL)
{
strcpy(str,dname);
strcat(str,"/");
strcat(str,de->d_name);
while((de = yaffs_readdir(d)) != NULL)
{
strcpy(str,dname);
strcat(str,"/");
strcat(str,de->d_name);
+ nentries++;
yaffs_lstat(str,&s);
yaffs_lstat(str,&s);
@@
-224,10
+227,15
@@
static void dump_directory_tree_worker(const char *dname,int recursive)
dump_directory_tree_worker(str,1);
if(s.st_ino > 10000)
dump_directory_tree_worker(str,1);
if(s.st_ino > 10000)
- error_line = __LINE__;
+
error_line = __LINE__;
}
}
+ if(strstr(dname,"lost+found") && nentries >0){
+ printf("\n\n!!! HEY lost+found not empty, had %d entries\n\n\n",nentries);
+ error_line = __LINE__;
+ }
+
if(error_line && !no_verification)
FatalError(error_line);
if(error_line && !no_verification)
FatalError(error_line);