Skip to content

Commit a62ae1d

Browse files
committedMay 12, 2015
test/transforms: adapt to 'now' save on core device
1 parent 0f9bc7b commit a62ae1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎artiq/test/transforms.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ def run():
3434
optimize_out = """
3535
3636
def run():
37-
do_something(344)
37+
now = syscall('now_init')
38+
try:
39+
do_something(344)
40+
finally:
41+
syscall('now_save', now)
3842
"""
3943

4044

0 commit comments

Comments
 (0)
Please sign in to comment.