diff options
author | Pedro Alves <palves@redhat.com> | 2014-08-20 18:55:54 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-08-20 18:55:54 +0100 |
commit | 2a31c6236de308f7109720230e70b96c5d5b966a (patch) | |
tree | c4c1558ae44aad7c21c6a30d6f5b3b4c7ac44dec /gdb/testsuite/configure | |
parent | 469a34932ae4208240e98c843b01ea1f00892137 (diff) | |
download | binutils-gdb-2a31c6236de308f7109720230e70b96c5d5b966a.tar.gz |
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/testsuite/configure')
-rwxr-xr-x | gdb/testsuite/configure | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/configure b/gdb/testsuite/configure index 4bf61213188..15944ed4248 100755 --- a/gdb/testsuite/configure +++ b/gdb/testsuite/configure @@ -591,6 +591,7 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS LIBOBJS +EXTRA_RULES EGREP GREP CPP @@ -3448,6 +3449,15 @@ done +if test "${build}" = "${host}" -a "${host}" = "${target}"; then + case "${host}" in + *gnu*) + EXTRA_RULES=read1 + ;; + esac +fi + + ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile gdb.cell/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.dlang/Makefile gdb.fortran/Makefile gdb.gdb/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile gdb.hp/gdb.defects/Makefile gdb.guile/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile" cat >confcache <<\_ACEOF |