Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support variadic functions as parameters #58

Open
nathaniel-bennett opened this issue Oct 14, 2024 · 0 comments
Open

Support variadic functions as parameters #58

nathaniel-bennett opened this issue Oct 14, 2024 · 0 comments

Comments

@nathaniel-bennett
Copy link

Currently, ctest2 returns an assertion failure when run against a function that contains a variadic function as a parameter. The assertion failure can be found here:

ctest2/src/lib.rs

Line 2107 in 80f9cc4

assert!(!variadic);

This became an issue while introducing NetBSD CI (rust-lang/libc#3965), as NetBSD contains the following function:

pub fn esetfunc(
    cb: ::Option<unsafe extern "C" fn(::c_int, *const ::c_char, ...)>,
) -> ::Option<unsafe extern "C" fn(::c_int, *const ::c_char, ...)>;

For esetfunc to be properly tested, variadic parameters/return values need support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant