Skip to content

Commit f3449cf

Browse files
committed
remove test added in last commit, does not compile on linux
1 parent 1a03dd3 commit f3449cf

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

vmprof/test/test_c_source.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,12 @@ def setup_class(cls):
1818
void vmp_set_ignore_symbols(ptr_t * symbols, int count);
1919
int vmp_read_vmaps(const char * fname);
2020
void vmp_native_disable();
21-
int sizeof_prof_stacktrace_s(void);
2221
""")
2322
with open("src/vmp_stack.c", "rb") as fd:
2423
source = fd.read().decode()
2524
libs = [] #['unwind', 'unwind-x86_64']
2625
if sys.platform.startswith('linux'):
2726
libs = ['unwind', 'unwind-x86_64']
28-
source += """
29-
#include "vmprof_common.h"
30-
int sizeof_prof_stacktrace_s(void) { return sizeof(prof_stacktrace_s); }
31-
"""
3227
# trick: compile with _CFFI_USE_EMBEDDING=1 which will not define Py_LIMITED_API
3328
stack_ffi.set_source("vmprof.test._test_stack", source, include_dirs=['src'],
3429
define_macros=[('_CFFI_USE_EMBEDDING',1), ('PY_TEST',1),
@@ -130,10 +125,3 @@ def test_overflow_vmaps(self, tmpdir):
130125
for l in range(0, 10000):
131126
assert self.lib.vmp_ignore_ip(l) == 1
132127
assert self.lib.vmp_ignore_ip(10001) == 0
133-
134-
def test_sizes(self):
135-
if sys.maxsize == 2**63-1:
136-
word_size = 8
137-
else:
138-
word_size = 4
139-
assert self.lib.sizeof_prof_stacktrace_s() == 3*word_size

0 commit comments

Comments
 (0)