-
Ideally I would like to make something that looks almost like this:
It only appears that I'm not correctly initializing my parameters or that I'm not properly sending them to my parameterized test. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I've simplified my code. But it still doesn't seem to work.
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately, this is a result of the addresses space changing between the parent (where ParameterizedTestParameters runs) and the child (where the test runs). Any pointer value defined there, including strings, end up messed up, likely because of the ASLR. The canonical way of passing pointer values is to use cr_malloc to ensure the strings get moved from the parent to the child's virtual address space. See Criterion/samples/parameterized.c Line 82 in 6c1be20 |
Beta Was this translation helpful? Give feedback.
Unfortunately, this is a result of the addresses space changing between the parent (where ParameterizedTestParameters runs) and the child (where the test runs). Any pointer value defined there, including strings, end up messed up, likely because of the ASLR.
The canonical way of passing pointer values is to use cr_malloc to ensure the strings get moved from the parent to the child's virtual address space. See
Criterion/samples/parameterized.c
Line 82 in 6c1be20