more debugging output when test fails

This commit is contained in:
fros4943 2009-06-26 11:30:36 +00:00
parent 501416fca0
commit 242d8edf03

View file

@ -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("&gt; ELF loader error: " + msg +"\n");
log.testFailed();
}
}
</script>
<active>true</active> <active>true</active>
</plugin_config> </plugin_config>
<width>600</width> <width>600</width>