From 65f3054a90a1275f831a595c84e6fbfb070e7aab Mon Sep 17 00:00:00 2001 From: Sathyanarayanan Gunasekaran Date: Tue, 17 Jun 2014 00:09:34 -0700 Subject: Add test case for empty path Test case credits to wilkie from - https://github.com/kripken/emscripten/issues/2235 --- tests/test_core.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/test_core.py') diff --git a/tests/test_core.py b/tests/test_core.py index 08e3594e..137e5e4a 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -4348,6 +4348,12 @@ def process(filename): out = path_from_root('tests', 'fs', 'test_writeFile.out') self.do_run_from_file(src, out) + def test_fs_emptyPath(self): + if self.emcc_args is None: return self.skip('requires emcc') + src = path_from_root('tests', 'fs', 'test_emptyPath.c') + out = path_from_root('tests', 'fs', 'test_emptyPath.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() -- cgit v1.2.3-18-g5258