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