Index: gdb/testsuite/gdb.base/foll-exec.c |
diff --git a/gdb/testsuite/gdb.base/foll-exec.c b/gdb/testsuite/gdb.base/foll-exec.c |
index 1b760903dd70a2e9b22103a131bd9439815c8d49..78c1cda888a376863a9eff3e2de6e6a8c883a0e4 100644 |
--- a/gdb/testsuite/gdb.base/foll-exec.c |
+++ b/gdb/testsuite/gdb.base/foll-exec.c |
@@ -17,27 +17,27 @@ main () |
printf ("foll-exec is about to execlp(execd-prog)...\n"); |
- execlp ("gdb.base/execd-prog", |
- "gdb.base/execd-prog", |
+ execlp (BASEDIR "/execd-prog", |
+ BASEDIR "/execd-prog", |
"execlp arg1 from foll-exec", |
(char *)0); |
printf ("foll-exec is about to execl(execd-prog)...\n"); |
- execl ("gdb.base/execd-prog", |
- "gdb.base/execd-prog", |
+ execl (BASEDIR "/execd-prog", |
+ BASEDIR "/execd-prog", |
"execl arg1 from foll-exec", |
"execl arg2 from foll-exec", |
(char *)0); |
{ |
static char * argv[] = { |
- (char *)"gdb.base/execd-prog", |
+ (char *)BASEDIR "/execd-prog", |
(char *)"execv arg1 from foll-exec", |
(char *)0}; |
printf ("foll-exec is about to execv(execd-prog)...\n"); |
- execv ("gdb.base/execd-prog", argv); |
+ execv (BASEDIR "/execd-prog", argv); |
} |
} |