aboutsummaryrefslogtreecommitdiff
path: root/debug/testlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug/testlib.py')
-rw-r--r--debug/testlib.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index bd92e1f..91e05de 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -518,26 +518,27 @@ class Gdb(object):
self.select_child(child)
self.command(command)
- def c(self, wait=True, async=False, checkOutput=True, ops=20):
+ def c(self, wait=True, sync=True, checkOutput=True, ops=20):
"""
Dumb c command.
In RTOS mode, gdb will resume all harts.
In multi-gdb mode, this command will just go to the current gdb, so
will only resume one hart.
"""
- if async:
- async = "&"
+ if sync:
+ sync = ""
else:
- async = ""
+ sync = "&"
if wait:
- output = self.command("c%s" % async, ops=ops)
+ output = self.command("c%s" % sync, ops=ops)
if checkOutput:
assert "Continuing" in output
assert "Could not insert hardware" not in output
return output
else:
- self.active_child.sendline("c%s" % async)
+ self.active_child.sendline("c%s" % sync)
self.active_child.expect("Continuing", timeout=ops * self.timeout)
+ return ""
def c_all(self, wait=True):
"""
@@ -1020,7 +1021,7 @@ class TestFailed(Exception):
self.message += ": %s" % comment
class TestNotApplicable(Exception):
- def __init__(self, message):
+ def __init__(self, message=""):
Exception.__init__(self)
self.message = message