On Tue, Jun 25, 2024 at 05:54:07PM +0530, Dev Jain wrote: > +static int do_child(void) > +{ > + if (ptrace(PTRACE_TRACEME, -1, NULL, NULL)) > + ksft_exit_fail_perror("PTRACE_TRACEME"); > + > + /* SIGTRAP makes the child stop after exec; do_parent() resumes it */ > + execv("trivial_32bit_program", NULL); > + return EXIT_SUCCESS; > +} We should check that the execv() worked, one thing that can go wrong is partially installing the tests or trying to run the tests in a different directory to the one where everything is installed. I'd be inclined to specify the path as ./ too to avoid surprises.
Attachment:
signature.asc
Description: PGP signature