nes-proj/tests/07-simulation-base/js/04-ringbufindex.js

26 lines
382 B
JavaScript
Raw Normal View History

TIMEOUT(10000, log.testFailed());
var failed = false;
while(true) {
YIELD();
log.log(time + " " + "node-" + id + " "+ msg + "\n");
2018-04-07 13:19:58 +00:00
if(msg.contains("=check-me=") == false) {
continue;
}
if(msg.contains("FAILED")) {
failed = true;
}
if(msg.contains("DONE")) {
break;
}
}
if(failed) {
log.testFailed();
}
log.testOK();