Skip to content

Commit c890466

Browse files
authored
Remove legacy/unneeded test_dlfcn_mallocs. NFC (#22232)
This test is rather complex and its hard to see what its even testing.
1 parent d1cf63e commit c890466

File tree

2 files changed

+0
-113
lines changed

2 files changed

+0
-113
lines changed

test/dlmalloc_proxy.c

Lines changed: 0 additions & 93 deletions
This file was deleted.

test/test_core.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3595,26 +3595,6 @@ def test_dlfcn_funcs(self):
35953595
ok
35963596
''')
35973597

3598-
@needs_dylink
3599-
def test_dlfcn_mallocs(self):
3600-
# will be exhausted without functional malloc/free
3601-
if not self.has_changed_setting('INITIAL_MEMORY'):
3602-
self.set_setting('INITIAL_MEMORY', '64mb')
3603-
3604-
create_file('liblib.c', r'''
3605-
#include <assert.h>
3606-
#include <stdio.h>
3607-
#include <string.h>
3608-
#include <stdlib.h>
3609-
3610-
void *mallocproxy(int n) { return malloc(n); }
3611-
void freeproxy(void *p) { free(p); }
3612-
''')
3613-
self.build_dlfcn_lib('liblib.c')
3614-
3615-
self.prep_dlfcn_main()
3616-
self.do_runf('dlmalloc_proxy.c', '*293,153*')
3617-
36183598
@needs_dylink
36193599
def test_dlfcn_longjmp(self):
36203600
create_file('liblib.c', r'''

0 commit comments

Comments
 (0)