[LTP] [RFC PATCH 1/2] Add support for mixing C and shell code

Petr Vorel pvorel@suse.cz
Wed Jul 17 19:55:47 CEST 2024


Hi all,

> On Wed, Jul 17, 2024 at 4:49 PM Cyril Hrubis <chrubis@suse.cz> wrote:

> > Hi!
> > > Since execvpe() is a GNU extension, we need to ensure that
> > > we are compiling with GNU extensions enabled.

> > > add this line into the head of tst_test.c:
> > > #define _GNU_SOURCE

FYI besides this (which brings CI build) it fails to compile also on musl:

https://github.com/pevik/ltp/actions/runs/9978962369/job/27577025071

tst_res_.c: In function 'main':
tst_res_.c:52:9: error: format not a string literal and no format arguments [-Werror=format-security]
   52 |         tst_res_(argv[1], atoi(argv[2]), type, msg);


Kind regards,
Petr


More information about the ltp mailing list