2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

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():
return 2
# CHECK-L: a 1
print("a", c.a)
# CHECK-L: f() 2
print("f()", c.f())
assert c.a == 1
assert c.f() == 2

View File

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

View File

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