[LTP] [PATCH v4 1/3] lib: Add support option for .needs_cmds
    Petr Vorel 
    pvorel@suse.cz
       
    Fri Oct 17 17:37:46 CEST 2025
    
    
  
Wei,
..
> +/**
> + * struct tst_cmd - Provides details about a command struct needed by LTP test.
> + * @cmd: The name of the command.
> + * @optional: A flag indicating if the command is optional.
> + * @present: A flag indicating if the command was found at runtime. This is an output
> + * parameter, set by the LTP library during the test setup.
> + */
> +struct tst_cmd {
> +	const char *cmd;
> +	unsigned int optional:1;
Any change you would modify one of lib/newlib_tests/tst_needs_cmds*.c
to use tst_cmd->optional?
Kind regards,
Petr
    
    
More information about the ltp
mailing list