summaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorSathyanarayanan Gunasekaran <gsathya.ceg@gmail.com>2014-06-11 17:09:25 -0700
committerSathyanarayanan Gunasekaran <gsathya.ceg@gmail.com>2014-06-11 17:29:33 -0700
commit00a321f5955538dd9eef324901d7e3126600ddaa (patch)
tree8bca55c131a0c28e475c16e498a0996e0ffb0f26 /tests/test_core.py
parentfc553d898adb0cce80e25cc3ba0be6ba5eb5dbc1 (diff)
add test case for checking file append
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 13b6c0f3..08e3594e 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -4348,6 +4348,11 @@ def process(filename):
out = path_from_root('tests', 'fs', 'test_writeFile.out')
self.do_run_from_file(src, out)
+ def test_fs_append(self):
+ if self.emcc_args is None: return self.skip('requires emcc')
+ src = open(path_from_root('tests', 'fs', 'test_append.c'), 'r').read()
+ self.do_run(src, 'success', force_c=True)
+
def test_unistd_access(self):
self.clear()
if not self.is_emscripten_abi(): return self.skip('asmjs-unknown-emscripten needed for inline js')