projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More test tweaks
[yaffs2.git]
/
direct
/
tests
/
nor_stress.c
diff --git
a/direct/tests/nor_stress.c
b/direct/tests/nor_stress.c
index 033700ddeea3177d56a3d2f9066f8d7bf343dc77..f84e1470ad8c6698e6395fb412626a533becd008 100644
(file)
--- a/
direct/tests/nor_stress.c
+++ b/
direct/tests/nor_stress.c
@@
-27,6
+27,8
@@
do { \
#endif
#endif
+void (*ext_fatal)(void) = NULL;
+
static unsigned powerUps;
static unsigned cycleStarts;
static unsigned cycleEnds;
static unsigned powerUps;
static unsigned cycleStarts;
static unsigned cycleEnds;
@@
-71,6
+73,9
@@
void MakeFullNames(const char *prefix)
static void FatalError(int lineNo)
{
printf("Integrity error %d\n",lineNo);
static void FatalError(int lineNo)
{
printf("Integrity error %d\n",lineNo);
+ if(ext_fatal)
+ ext_fatal();
+
while(1){
sleep(1);
}
while(1){
sleep(1);
}