Skip to content

Commit 07ebf5a

Browse files
committed
Add test that previously failed on Windows
1 parent 3137336 commit 07ebf5a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/test_other.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8370,6 +8370,17 @@ def test_noderawfs_disables_embedding(self):
83708370
err = self.expect_fail(base + ['--embed-file', 'somefile'])
83718371
self.assertContained(expected, err)
83728372

8373+
def test_noderawfs_access_abspath(self):
8374+
create_file('foo', 'bar')
8375+
create_file('access.c', r'''
8376+
#include <unistd.h>
8377+
int main(int argc, char** argv) {
8378+
return access(argv[1], F_OK);
8379+
}
8380+
''')
8381+
self.run_process([EMCC, 'access.c', '-sNODERAWFS'])
8382+
self.run_js('a.out.js', args=[os.path.abspath('foo')])
8383+
83738384
@disabled('https://github.com/nodejs/node/issues/18265')
83748385
def test_node_code_caching(self):
83758386
self.run_process([EMCC, test_file('hello_world.c'),

0 commit comments

Comments
 (0)