| Index: gdb/testsuite/gdb.base/foll-exec.exp
|
| diff --git a/gdb/testsuite/gdb.base/foll-exec.exp b/gdb/testsuite/gdb.base/foll-exec.exp
|
| index 5ab3ebca1300d4673a88656e017157b939639fc0..135cad6c59b3cd4afe1a18936e672b260ad24a65 100644
|
| --- a/gdb/testsuite/gdb.base/foll-exec.exp
|
| +++ b/gdb/testsuite/gdb.base/foll-exec.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 1997, 1999, 2007-2012 Free Software Foundation, Inc.
|
| +# Copyright 1997-2013 Free Software Foundation, Inc.
|
|
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -23,20 +23,23 @@ if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-linux*"]} then {
|
| continue
|
| }
|
|
|
| -set testfile "foll-exec"
|
| +standard_testfile foll-exec.c
|
| +
|
| set testfile2 "execd-prog"
|
| -set srcfile ${testfile}.c
|
| set srcfile2 ${testfile2}.c
|
| -set binfile ${objdir}/${subdir}/${testfile}
|
| -set binfile2 ${objdir}/${subdir}/${testfile2}
|
| +set binfile2 [standard_output_file ${testfile2}]
|
| +
|
| +set compile_options debug
|
| +set dirname [relative_filename [pwd] [file dirname $binfile]]
|
| +lappend compile_options "additional_flags=-DBASEDIR=\"$dirname\""
|
|
|
| # build the first test case
|
| -if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug}] != "" } {
|
| +if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable $compile_options] != "" } {
|
| untested foll-exec.exp
|
| return -1
|
| }
|
|
|
| -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
|
| +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $compile_options] != "" } {
|
| untested foll-exec.exp
|
| return -1
|
| }
|
|
|