forked from M-Labs/artiq
1
0
Fork 0

lit-test: fix tests incorrectly assuming an OutputCheck step.

This commit is contained in:
whitequark 2015-08-18 15:05:43 -07:00
parent 94a2d5f5fa
commit 1040a409c3
3 changed files with 8 additions and 10 deletions

View File

@ -6,7 +6,5 @@ class c:
def f(): def f():
return 2 return 2
# CHECK-L: a 1 assert c.a == 1
print("a", c.a) assert c.f() == 2
# CHECK-L: f() 2
print("f()", c.f())

View File

@ -1,5 +1,7 @@
# RUN: %python -m artiq.compiler.testbench.jit %s # RUN: %python -m artiq.compiler.testbench.jit %s >%t.1
# RUN: %python %s # RUN: OutputCheck %s --file-to-check=%t.1
# RUN: %python %s >%t.2
# RUN: OutputCheck %s --file-to-check=%t.2
# REQUIRES: exceptions # REQUIRES: exceptions
def f(): def f():

View File

@ -6,11 +6,9 @@ class c:
i = c() i = c()
# CHECK-L: a 1 assert i.a == 1
print("a", i.a)
def f(): def f():
c = None c = None
# CHECK-L: shadow a 1 assert i.a == 1
print("shadow a", i.a)
f() f()