From: Bart Van Assche Date: Sun, 15 May 2011 06:18:24 +0000 (+0000) Subject: gdbserver tests: only create the gdbserver_tests/gdb soft link if ./configure found... X-Git-Tag: svn/VALGRIND_3_7_0~484 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf797c0098a07742e9b4d31bd11c94989d86d40;p=thirdparty%2Fvalgrind.git gdbserver tests: only create the gdbserver_tests/gdb soft link if ./configure found gdb. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11753 --- diff --git a/gdbserver_tests/make_local_links b/gdbserver_tests/make_local_links index f7291d65a6..7ed9a73fde 100755 --- a/gdbserver_tests/make_local_links +++ b/gdbserver_tests/make_local_links @@ -10,9 +10,9 @@ # The vgdb link is needed either for gdb tests # or for standalone vgdb tests. -ln -f -s $1 gdbserver_tests/gdb -if [ -x gdbserver_tests/gdb ] +if [ -x "$1" ] then + ln -f -s "$1" gdbserver_tests/gdb # Try to extract the gdb version. VERSIONLINE=`gdbserver_tests/gdb --version | head -1` VERSION=`echo $VERSIONLINE |