From a62ae1d8d78c3d24e18939e0fcf301fba5efe2e4 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 12 May 2015 23:06:33 +0800 Subject: [PATCH] test/transforms: adapt to 'now' save on core device --- artiq/test/transforms.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/artiq/test/transforms.py b/artiq/test/transforms.py index b9ee5e30d..e51995ad8 100644 --- a/artiq/test/transforms.py +++ b/artiq/test/transforms.py @@ -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) """