clar: remove unused shell_out function
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
diff --git a/tests/clar/fs.h b/tests/clar/fs.h
index 6c63a0d..87d3451 100644
--- a/tests/clar/fs.h
+++ b/tests/clar/fs.h
@@ -277,32 +277,6 @@ cl_fs_cleanup(void)
# include <copyfile.h>
#endif
-static int
-shell_out(char * const argv[])
-{
- int status, piderr;
- pid_t pid;
-
- pid = fork();
-
- if (pid < 0) {
- fprintf(stderr,
- "System error: `fork()` call failed (%d) - %s\n",
- errno, strerror(errno));
- exit(-1);
- }
-
- if (pid == 0) {
- execv(argv[0], argv);
- }
-
- do {
- piderr = waitpid(pid, &status, WUNTRACED);
- } while (piderr < 0 && (errno == EAGAIN || errno == EINTR));
-
- return WEXITSTATUS(status);
-}
-
static void basename_r(const char **out, int *out_len, const char *in)
{
size_t in_len = strlen(in), start_pos;