rust-lang / rust-lang/libc

ctest: support variadics in function pointers

Open
#4,367 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ctest
Dominant language
Rust
Stars
2.6k
Forks
1.3k
Avg merge
1d 22h
Merged PRs (30d)
69

Description

ctest should be able to generate tests for functions that make use of varidics. See https://github.com/JohnTitor/ctest2/issues/58 for context.

Edit: The above works since https://github.com/rust-lang/libc/pull/5385, but we should ideallly cover variadics in function pointer aliases and struct/union fields as well.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading ctest's existing handling of variadic functions and the linked ctest2 issue for context. Extend coverage to variadics in function pointer aliases and struct or union fields, then verify that ctest generates valid tests for those cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.