about summary refs log tree commit diff
path: root/posix/tst-execvp3.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/tst-execvp3.c')
-rw-r--r--posix/tst-execvp3.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/posix/tst-execvp3.c b/posix/tst-execvp3.c
index 5ebc87952d..02a937c2da 100644
--- a/posix/tst-execvp3.c
+++ b/posix/tst-execvp3.c
@@ -12,6 +12,9 @@ static int do_test (void);
 
 #include "../test-skeleton.c"
 
+#ifndef EXECVP
+# define EXECVP(file, argv)  execvp (file, argv)
+#endif
 
 static char *fname;
 
@@ -35,7 +38,7 @@ do_test (void)
     }
 
   char *argv[] = { fname, NULL };
-  execvp (basename (fname), argv);
+  EXECVP (basename (fname), argv);
 
   /* If we come here, the execvp call failed.  */
   return 1;