File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -8370,6 +8370,17 @@ def test_noderawfs_disables_embedding(self):
8370
8370
err = self .expect_fail (base + ['--embed-file' , 'somefile' ])
8371
8371
self .assertContained (expected , err )
8372
8372
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
+
8373
8384
@disabled ('https://github.com/nodejs/node/issues/18265' )
8374
8385
def test_node_code_caching (self ):
8375
8386
self .run_process ([EMCC , test_file ('hello_world.c' ),
You can’t perform that action at this time.
0 commit comments