Skip failing test_unistd_links test with NODEFS on Windows, since it requires running in administrative mode. (Also atm fails on a few node.js-specific crossplatform discrepancies)
This commit is contained in:
Родитель
7a2b48d400
Коммит
aa3c7f8214
|
@ -7841,6 +7841,12 @@ def process(filename):
|
|||
self.clear()
|
||||
if not self.is_le32(): return self.skip('le32 needed for inline js')
|
||||
for fs in ['MEMFS', 'NODEFS']:
|
||||
if WINDOWS and fs == 'NODEFS':
|
||||
print >> sys.stderr, 'Skipping NODEFS part of this test for test_unistd_links on Windows, since it would require administrative privileges.'
|
||||
# Also, other detected discrepancies if you do end up running this test on NODEFS:
|
||||
# test expects /, but Windows gives \ as path slashes.
|
||||
# Calling readlink() on a non-link gives error 22 EINVAL on Unix, but simply error 0 OK on Windows.
|
||||
continue
|
||||
src = open(path_from_root('tests', 'unistd', 'links.c'), 'r').read()
|
||||
expected = open(path_from_root('tests', 'unistd', 'links.out'), 'r').read()
|
||||
Building.COMPILER_TEST_OPTS += ['-D' + fs]
|
||||
|
|
Загрузка…
Ссылка в новой задаче