On Tue, 17 Jun 2025, Jeremy Drake via Cygwin-patches wrote:

> Currently just a couple of tests of error conditions, but I have more
> tests to add.
>
> Signed-off-by: Jeremy Drake <cyg...@jdrake.com>
> ---
>
> v2: wrap some lines, and add a test for ENOEXEC error (it does NOT fall
> back to invoking the shell).
>
> diff --git a/winsup/testsuite/winsup.api/posix_spawn/errors.c 
> b/winsup/testsuite/winsup.api/posix_spawn/errors.c
> new file mode 100644
> index 0000000000..38563441f3
> --- /dev/null
> +++ b/winsup/testsuite/winsup.api/posix_spawn/errors.c
> @@ -0,0 +1,57 @@
> +#include "test.h"
> +#include <spawn.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>

D'oh, Linux needs <sys/stat.h> for chmod.

Reply via email to