This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/6] Fix several cases of unstable test names


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]