aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-05-15 16:26:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-05-15 16:26:57 -0700
commit798e635cf912d778f08f8107d6d59fcd11b20082 (patch)
treeb4627e55014a017c02d952c92feda76d745415ee /tests/runner.py
parent3afb3d53d70c6d9a3e84e488cfa986b8cd7b2733 (diff)
support for reading files synchronously
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index a2864aac..7bb5f5ab 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1650,8 +1650,13 @@ if 'benchmark' not in sys.argv:
'''this._STDIO.prepare('somefile.binary', [100, 200, 50, 25, 10, 77, 123]);''' # 200 becomes -56, since signed chars are used in memory
)
open(filename, 'w').write(src)
+
+ other = open(os.path.join(self.get_dir(), 'test.file'), 'w')
+ other.write('some data');
+ other.close()
+
src = open(path_from_root('tests', 'files.cpp'), 'r').read()
- self.do_test(src, 'size: 7\ndata: 100,-56,50,25,10,77,123\ntexto\ntexte\n5 : 10,30,20,11,88\n', post_build=post)
+ self.do_test(src, 'size: 7\ndata: 100,-56,50,25,10,77,123\ntexto\ntexte\n5 : 10,30,20,11,88\nother=some data.\n', post_build=post)
### 'Big' tests