aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-06-03 21:27:02 +0300
committerJukka Jylänki <jujjyl@gmail.com>2013-06-03 21:27:34 +0300
commit8c465089bbc5a119bf42068359343a628bf75d8a (patch)
tree4980f5bc3ff8e51c567e33987ee7c09fe59a4a80 /tests
parentdc7a8850f18e722f03d1c02abb1518e6b80238a5 (diff)
Skip other.test_symlink on Windows, since it doesn't have them. NTFS does have junction points, but it's a rather rarely used feature, and not a common dev aid like it is for linux/osx users.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 720f434e..bb6ffac8 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -10307,6 +10307,8 @@ f.close()
assert not os.path.exists('a.out') and not os.path.exists('a.exe'), 'Must not leave unneeded linker stubs'
def test_symlink(self):
+ if os.name == 'nt':
+ return self.skip('Windows FS does not need to be tested for symlinks support, since it does not have them.')
open(os.path.join(self.get_dir(), 'foobar.xxx'), 'w').write('int main(){ return 0; }')
os.symlink(os.path.join(self.get_dir(), 'foobar.xxx'), os.path.join(self.get_dir(), 'foobar.c'))
Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'foobar.c'), '-o', os.path.join(self.get_dir(), 'foobar')], stdout=PIPE, stderr=PIPE).communicate()