forked from M-Labs/artiq
1
0
Fork 0

test/transforms: adapt to 'now' save on core device

This commit is contained in:
Sebastien Bourdeauducq 2015-05-12 23:06:33 +08:00
parent 0f9bc7bc4b
commit a62ae1d8d7
1 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,11 @@ def run():
optimize_out = """
def run():
do_something(344)
now = syscall('now_init')
try:
do_something(344)
finally:
syscall('now_save', now)
"""