diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-07 17:34:04 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-07 17:34:04 -0700 |
commit | 85d6c77437f3eb9a67b36383f1f803425a7ef742 (patch) | |
tree | bd356379825115ee9983ec9d3514edd28b4abc9b | |
parent | 1cb8ef33e79e6f5a469d23910880720de14336fe (diff) |
fix test_files
-rw-r--r-- | src/library.js | 2 | ||||
-rwxr-xr-x | tests/runner.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js index 6ef065e0..665d3faf 100644 --- a/src/library.js +++ b/src/library.js @@ -650,7 +650,7 @@ LibraryManager.library = { }, close: function(stream) { // flush any pending line data - if (output.buffer && output.buffer.length) { + if (output && output.buffer && output.buffer.length) { output({{{ charCode('\n') }}}); } }, diff --git a/tests/runner.py b/tests/runner.py index b9807209..bcea89ea 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -7089,7 +7089,7 @@ def process(filename): other.close() src = open(path_from_root('tests', 'files.cpp'), 'r').read() - self.do_run(src, 'size: 7\ndata: 100,-56,50,25,10,77,123\nloop: 100 -56 50 25 10 77 123 \ninput:hi there!\ntexto\n$\n5 : 10,30,20,11,88\nother=some data.\nseeked=me da.\nseeked=ata.\nseeked=ta.\nfscanfed: 10 - hello\nok.\ntexte\n', + self.do_run(src, ('size: 7\ndata: 100,-56,50,25,10,77,123\nloop: 100 -56 50 25 10 77 123 \ninput:hi there!\ntexto\n$\n5 : 10,30,20,11,88\nother=some data.\nseeked=me da.\nseeked=ata.\nseeked=ta.\nfscanfed: 10 - hello\nok.\ntexte\n', 'size: 7\ndata: 100,-56,50,25,10,77,123\nloop: 100 -56 50 25 10 77 123 \ninput:hi there!\ntexto\ntexte\n$\n5 : 10,30,20,11,88\nother=some data.\nseeked=me da.\nseeked=ata.\nseeked=ta.\nfscanfed: 10 - hello\nok.\n'), post_build=post, extra_emscripten_args=['-H', 'libc/fcntl.h']) def test_files_m(self): |