8336d58
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225783
8336d58
8336d58
8336d58
--- gdb-6.6/gdb/testsuite/gdb.base/prelink.exp.orig	2006-03-08 19:22:09.000000000 -0500
8336d58
+++ gdb-6.6/gdb/testsuite/gdb.base/prelink.exp	2007-04-08 13:22:45.000000000 -0400
8336d58
@@ -48,7 +48,7 @@
8336d58
     return -1
8336d58
 }
8336d58
 
8336d58
-if {[catch "system \"prelink -qNR ${libfile}\""] != 0} {
8336d58
+if {[catch "system \"/usr/sbin/prelink -qNR ${libfile}\""] != 0} {
8336d58
     # Maybe we don't have prelink.
8336d58
     return -1
8336d58
 }
8336d58
@@ -89,11 +89,11 @@
8336d58
     return 0
8336d58
 }
8336d58
 
8336d58
-if {[catch "system \"prelink -uN ${libfile}\""] != 0} {
8336d58
+if {[catch "system \"/usr/sbin/prelink -uN ${libfile}\""] != 0} {
8336d58
     untested "${libfile} was not prelinked, maybe system libraries are not prelinked?"
8336d58
     return 0
8336d58
 }
8336d58
-catch "system \"prelink -qNR ${libfile}\""
8336d58
+catch "system \"/usr/sbin/prelink -qNR ${libfile}\""
8336d58
 
8336d58
 # Start with a fresh gdb
8336d58