gdb: change duplicate test name in gdb.base/jit-so.exp
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 12 May 2020 00:10:35 +0000 (20:10 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 12 May 2020 00:10:35 +0000 (20:10 -0400)
When running gdb.base/jit-so.exp, we see duplicate test names:

$ grep PASS testsuite/gdb.sum | sort | uniq -c | sort -n
      ...
      2 PASS: gdb.base/jit-so.exp: one_jit_test-1: info function jit_function
      2 PASS: gdb.base/jit-so.exp: one_jit_test-2: info function jit_function

Give an explicit name to one test to avoid this.

gdb/testsuite/ChangeLog:

* gdb.base/jit-so.exp (one_jit_test): Change test name.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/jit-elf-so.exp

index 29b6636b7ce5c5cb77a403c52d1f5875cf051c42..2817ebd2bf439a7ce7af7686986c59e118618230 100644 (file)
@@ -1,3 +1,7 @@
+2020-05-11  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * gdb.base/jit-so.exp (one_jit_test): Change test name.
+
 2020-05-11  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * lib/check-test-names.exp (all_test_names): New module variable.
index 526414f43cfda640e0b935403581d7f44cff16c0..0f05221a62a213138c2d5b5351582f70d3d91ab6 100644 (file)
@@ -110,7 +110,8 @@ proc one_jit_test {count match_str} {
        gdb_continue_to_breakpoint "break here 2"
        # All jit librares must have been unregistered
        gdb_test "info function jit_function" \
-           "All functions matching regular expression \"jit_function\":"
+           "All functions matching regular expression \"jit_function\":" \
+           "info function jit_function after unregistration"
     }
 }