This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/6] Fix several cases of unstable test names
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 23 Oct 2017 15:18:21 +0100
- Subject: [PATCH 0/6] Fix several cases of unstable test names
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=palves at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9CA587EA80
I frequently diff testresults between builds in different build and
source directories, and that reveals several spurious differences.
Most are caused by the fact the some tests include the source or build
directories in their names, like:
-PASS: gdb.arch/arc-tdesc-cpu.exp: set tdesc filename /home/pedro/gdb1/src/gdb/testsuite/gdb.arch/arc-tdesc-cpu.xml
+PASS: gdb.arch/arc-tdesc-cpu.exp: set tdesc filename /home/pedro/gdb2/src/gdb/testsuite/gdb.arch/arc-tdesc-cpu.xml
^^^^
-PASS: gdb.base/startup-with-shell.exp: touch /home/pedro/gdb1/build/gdb/testsuite/outputs/gdb.base/startup-with-shell/unique-file.unique-extension
+PASS: gdb.base/startup-with-shell.exp: touch /home/pedro/gdb2/build/gdb/testsuite/outputs/gdb.base/startup-with-shell/unique-file.unique-extension
^^^^
(I've underlined the differences above.)
though there are other causes too. See each individual patch.
This series fixes all the spurious differences I see when native
testing on GNU/Linux.
Pedro Alves (6):
Fix unstable test names in gdb.arch/arc-tdesc-cpu.exp
Fix unstable test names in gdb.base/startup-with-shell.exp
Fix unstable test names in gdb.gdb/unittest.exp
Fix unstable test names in gdb.python/py-objfile.exp
Fix unstable test names in gdb.threads/attach-into-signal.exp
Drop /proc/PID/status polling from gdb.threads/attach-into-signal.exp
gdb/testsuite/gdb.arch/arc-tdesc-cpu.exp | 8 +++----
gdb/testsuite/gdb.base/startup-with-shell.exp | 7 ++++--
gdb/testsuite/gdb.gdb/unittest.exp | 3 ++-
gdb/testsuite/gdb.threads/attach-into-signal.exp | 28 ------------------------
gdb/testsuite/lib/gdb-python.exp | 16 +++++++++-----
5 files changed, 21 insertions(+), 41 deletions(-)
--
2.5.5