more debugging output when test fails
This commit is contained in:
parent
501416fca0
commit
242d8edf03
1 changed files with 15 additions and 7 deletions
|
@ -148,13 +148,21 @@ log.log("Starting hello world\n");
|
|||
GENERATE_MSG(500, "continue");
|
||||
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
|
||||
write(mote, "exec hello-world.ce\n");
|
||||
WAIT_UNTIL(msg.contains("OK"));
|
||||
log.log("> ELF loader returned OK\n");
|
||||
WAIT_UNTIL(msg.contains("Hello, world"));
|
||||
log.log("> Hello world process started\n");
|
||||
|
||||
log.log("Finished!\n");
|
||||
log.testOK();</script>
|
||||
while (true) {
|
||||
YIELD();
|
||||
if (msg.contains("OK")) {
|
||||
log.log("> ELF loader returned OK\n");
|
||||
}
|
||||
if (msg.contains("Hello, world")) {
|
||||
log.log("> Hello world process started\n");
|
||||
log.testOK();
|
||||
}
|
||||
if (msg.contains("Symbol not found")) {
|
||||
log.log("> ELF loader error: " + msg +"\n");
|
||||
log.testFailed();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<active>true</active>
|
||||
</plugin_config>
|
||||
<width>600</width>
|
||||
|
|
Loading…
Reference in a new issue