aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-08-20 18:55:54 +0100
committerPedro Alves <palves@redhat.com>2014-08-20 18:55:54 +0100
commit2a31c6236de308f7109720230e70b96c5d5b966a (patch)
treec4c1558ae44aad7c21c6a30d6f5b3b4c7ac44dec /gdb/Makefile.in
parent469a34932ae4208240e98c843b01ea1f00892137 (diff)
downloadgdb-2a31c6236de308f7109720230e70b96c5d5b966a.zip
gdb-2a31c6236de308f7109720230e70b96c5d5b966a.tar.gz
gdb-2a31c6236de308f7109720230e70b96c5d5b966a.tar.bz2
Integrate PR 12649's race detector directly in the testsuite machinery
This integrates Jan Kratochvil's nice race reproducer from PR testsuite/12649 into the testsuite infrustructure directly. With this, one only has to do either 'make check-read1' or 'make check READ1="1"' to preload the read1.so library into expect. Currently only enabled for glibc/GNU systems, and if build==host==target. gdb/testsuite/ChangeLog: * Makefile.in (EXTRA_RULES, CC): New variables, get from configure. (EXPECT): Handle READ1 being set. (all): Depend on EXTRA_RULES. (check-read1, expect-read1, read1.so, read1): New rules. * README (Testsuite Parameters): Document the READ1 make variable. (Race detection): New section. * configure: Regenerate. * configure.ac: If build==host==target, and running under a GNU/glibc system, add read1 to the extra Makefile rules. (EXTRA_RULES): AC_SUBST it. * lib/read1.c: New file. gdb/ChangeLog: * Makefile.in (check-read1): New rule.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index b33defe..f251627 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1098,6 +1098,14 @@ check-perf: force
$(MAKE) $(TARGET_FLAGS_TO_PASS) check-perf; \
else true; fi
+check-read1: force
+ @if [ -f testsuite/Makefile ]; then \
+ rootme=`pwd`; export rootme; \
+ rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
+ cd testsuite; \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check-read1; \
+ else true; fi
+
# The idea is to parallelize testing of multilibs, for example:
# make -j3 check//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
# will run 3 concurrent sessions of check, eventually testing all 10