aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-07-15 20:25:21 -0700
committerAnthony Pesch <inolen@gmail.com>2013-07-15 21:22:11 -0700
commit13b8be215de6213eabb23bd68c34622f00452954 (patch)
treedfc218a0936d28c88d2da102ff579189db969ca5 /tests/runner.py
parent9bf755607fc7a0e7f446a5e2d6c82738d77d876f (diff)
- rmdir / unlink no longer follow the final symlink
- rmdir / unlink no longer check write permission on the found object, but on its parent - rmdir should return EBUSY when path matches the root / cwd - unlinking a directory should return EPERM according to POSIX (EISDIR is a Linux convention)
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 0efcce86..b40c52ea 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -7333,18 +7333,8 @@ def process(filename):
self.do_run(src, expected)
def test_unistd_unlink(self):
- add_pre_run = '''
-def process(filename):
- import tools.shared as shared
- src = open(filename, 'r').read().replace(
- '// {{PRE_RUN_ADDITIONS}}',
- open(shared.path_from_root('tests', 'unistd', 'unlink.js'), 'r').read()
- )
- open(filename, 'w').write(src)
-'''
src = open(path_from_root('tests', 'unistd', 'unlink.c'), 'r').read()
- expected = open(path_from_root('tests', 'unistd', 'unlink.out'), 'r').read()
- self.do_run(src, expected, post_build=add_pre_run)
+ self.do_run(src, 'success', force_c=True)
def test_unistd_links(self):
add_pre_run = '''