aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-20 20:57:45 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-20 20:57:45 -0800
commit42e3aa5ad342e0b0d609212b8120abfddaccef2a (patch)
tree9cf64dc402fc996c4d63f232b5a28385b9a5ec4e /tests/runner.py
parent9f00292b7c7fa0cf69b8704c23b092811a9f9cc1 (diff)
parentbae448ef2619fffb90021c96546cbccadc39ed20 (diff)
Merge branch 'master' into incoming
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index bb10ca81..de08c1cf 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -2054,6 +2054,20 @@ def process(filename):
self.do_run(src, '*1,2,3,5,5,6*\n*stdin==0:0*\n*%*\n*5*\n*66.0*\n*10*\n*0*\n*-10*\n*18*\n*10*\n*0*\n*4294967286*\n*malloc(0)!=0:1*\n*cleaned*')
+ src = r'''
+ #include <stdio.h>
+ #include <stdbool.h>
+
+ int main() {
+ bool x = true;
+ bool y = false;
+ printf("*%d*\n", x != y);
+ return 0;
+ }
+ '''
+
+ self.do_run(src, '*1*', force_c=True)
+
def test_time(self):
# XXX Not sure what the right output is here. Looks like the test started failing with daylight savings changes. Modified it to pass again.
src = open(path_from_root('tests', 'time', 'src.c'), 'r').read()