xref: /relibc/tests/unistd/exec.c (revision be35961d82cd98f2a2e61c4f1869271b9f4af571)
1 #include <unistd.h>
2 #include <stdio.h>
3 #include <stdlib.h>
4 
5 #include "test_helpers.h"
6 
7 int main(void) {
8     char* args[] = {"sh", "-c", "echo 'exec works :D'", NULL};
9 
10     int status = execv("/bin/sh", args);
11     ERROR_IF(execv, status, == -1);
12 }
13