This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Disable two more tests with remote targets
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 4 Aug 2011 17:04:12 +0200 (CEST)
- Subject: [commit] Disable two more tests with remote targets
Hello,
this disables two more tests for remote targets to avoid spurious failures:
- gdb.base/nostdlib.exp expects a breakpoint on the entry point to hit;
this does not work on GDB stub targets, as recently discussed for the
break-entry.exp test case
- gdb.base/watch-vfork.exp tests (software) watchpoints across vfork;
this requires the target to support vfork events, which remote
(currently) does not
Tested on arm-linux-gnueabi.
Committed to mainline.
Bye,
Ulrich
ChangeLog:
* gdb.base/nostdlib.exp: Skip on gdb_stub targets.
* gdb.base/watch-vfork.exp: Skip on remote targets.
Index: gdb/testsuite/gdb.base/nostdlib.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/nostdlib.exp,v
retrieving revision 1.2
diff -u -p -r1.2 nostdlib.exp
--- gdb/testsuite/gdb.base/nostdlib.exp 1 Jan 2011 15:33:42 -0000 1.2
+++ gdb/testsuite/gdb.base/nostdlib.exp 4 Aug 2011 14:57:19 -0000
@@ -18,6 +18,14 @@ set srcfile ${testfile}.c
set executable ${testfile}
set binfile ${objdir}/${subdir}/${executable}
+# If we're using a stub, breakpoints at the entry point will not trigger.
+# See also the comment in break-entry.exp.
+
+if [target_info exists use_gdb_stub] {
+ untested ${testfile}.exp
+ return
+}
+
# default_target_compile would otherwise add "-lm" making the testcase
# dependent on whether the system libraries are already prelinked.
# prelink: Could not set /lib64/libm-2.11.1.so owner or mode: Operation not permitted
Index: gdb/testsuite/gdb.base/watch-vfork.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/watch-vfork.exp,v
retrieving revision 1.4
diff -u -p -r1.4 watch-vfork.exp
--- gdb/testsuite/gdb.base/watch-vfork.exp 1 Jan 2011 15:33:43 -0000 1.4
+++ gdb/testsuite/gdb.base/watch-vfork.exp 4 Aug 2011 14:57:19 -0000
@@ -15,6 +15,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# There's no support for vfork events in the remote protocol.
+if { [is_remote target] } {
+ return 0
+}
+
global srcfile
set testfile "watch-vfork"
if { [build_executable ${testfile}.exp ${testfile} ${testfile}.c {debug}] } {
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com