aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-03 13:30:30 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-03 13:30:30 -0700
commitd9f2abbd51be7a5e8afab3ba074b96f6b9983ac7 (patch)
treea960da24a09f1f7ab4e752c29af5927c5f3669cb
parent60cbbc933ce659258dd406e6da04fa0fef9b0f78 (diff)
parent8c465089bbc5a119bf42068359343a628bf75d8a (diff)
Merge pull request #1236 from juj/skip_test_symlink
Skip other.test_symlink on Windows, since it doesn't have them.
-rwxr-xr-xtests/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 3d372199..47c1f1be 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -10315,6 +10315,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()