Skip to content

Commit 3114f02

Browse files
authored
Fix asan.test_dlfcn_preload. NFC (#22092)
This was a new test added in #21985. This changes means that any symbols that libb.so needs are exported/preserved when building the main module.
1 parent 8964c21 commit 3114f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3980,7 +3980,7 @@ def test_dlfcn_preload(self):
39803980
''')
39813981
self.build_dlfcn_lib('libb.c', outfile='libb.so', emcc_args=['liba.so'])
39823982

3983-
self.prep_dlfcn_main(['--preload-file', 'libb.so', '--use-preload-plugins'])
3983+
self.prep_dlfcn_main(['--preload-file', 'libb.so', '--use-preload-plugins', '-L.', '-sAUTOLOAD_DYLIBS=0', 'libb.so'])
39843984
create_file('main.c', r'''
39853985
#include <assert.h>
39863986
#include <dlfcn.h>

0 commit comments

Comments
 (0)