gdb/testsuite: Disable path and duplicate checks when parallel testing
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 12 May 2020 16:38:17 +0000 (17:38 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 12 May 2020 16:43:46 +0000 (17:43 +0100)
This commit disables the recently added checking for paths in test
names, and for duplicate test names, when the gdb tests are run in
parallel.

When running the gdb tests in parallel the extra result count lines
produced cause the dg-extract-results scripts to exit with an error.

The patches for the dg-extract-results scripts have been posted to the
gcc-patches mailing list here:

https://gcc.gnu.org/pipermail/gcc-patches/2020-May/545562.html

Once they are merged there then these changes can be merged over to
binutils-gdb, and this commit can be reverted.

gdb/testsuite/ChangeLog:

* lib/check-test-names.exp: Disable when testing is being run in
parallel.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/check-test-names.exp

index cd8440d35e0c40798eaa53729772aa88371f8bfb..98cff4690333b1fdfde65a1084a954cfb3ac38df 100644 (file)
@@ -1,3 +1,8 @@
+2020-05-12  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * lib/check-test-names.exp: Disable when testing is being run in
+       parallel.
+
 2020-05-12  Tom de Vries  <tdevries@suse.de>
 
        * gdb.base/jit-elf.exp: Fix string concat.
index 4c0fde6e4ea92a05b386719d0ff065129ec17ce6..79139adea7af8119213cef396206ce714a979991 100644 (file)
 # name.  When a test includes the path in its test name it is harder
 # to compare results between two runs of GDB from different trees.
 
+# This is a short term hack (12-May-2020).  If we are running tests in
+# parallel then we need support in the contrib/dg-extract-results.*
+# scripts to merge the new result types generated by this file back
+# into the single unified summary file.  If this support is not in
+# place then the dg-extract-results script will exit with an error.
+#
+# The script changes need to first be merged into the gcc repository,
+# then copied over to the binutils-gdb repository.  The required
+# changes have been posted to the gcc list here:
+#
+# https://gcc.gnu.org/pipermail/gcc-patches/2020-May/545562.html
+#
+# But until these are merged into binutils-gdb the extra checks
+# offered by this file can only be done when the tests are not running
+# in parallel.
+if {[info exists GDB_PARALLEL]} {
+    # Don't load this file.
+    return
+}
+
 namespace eval ::CheckTestNames {
     # An associative array of all test names to the number of times each
     # name is seen.  Used to detect duplicate test names.
This page took 0.032384 seconds and 4 git commands to generate.