mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-24 07:29:42 +00:00
32 lines
620 B
JavaScript
32 lines
620 B
JavaScript
TIMEOUT(60000);
|
|
|
|
fileOK = null;
|
|
gcOK = null;
|
|
|
|
while (fileOK == null || gcOK == null) {
|
|
YIELD();
|
|
|
|
if (msg.startsWith('Coffee file test: 0')) {
|
|
fileOK = true;
|
|
} else if (msg.startsWith('Coffee file test')) {
|
|
fileOK = false;
|
|
} else if (msg.startsWith('Coffee garbage collection test: 0')) {
|
|
gcOK = true;
|
|
} else if (msg.startsWith('Coffee garbage collection test')) {
|
|
gcOK = false;
|
|
}
|
|
|
|
}
|
|
|
|
if (gcOK == false) {
|
|
log.log("coffee garbage collection failed\n");
|
|
}
|
|
if (fileOK == false) {
|
|
log.log("coffee file test failed\n");
|
|
}
|
|
if (!fileOK || !gcOK) {
|
|
log.testFailed();
|
|
} else {
|
|
log.testOK();
|
|
}
|