diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-03-08 17:51:42 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-03-12 12:18:33 +0000 |
commit | 8b12ded4e6a7f11d7fa4eabf119061a38716c143 (patch) | |
tree | d60a903f9a0df7fa74511d63ca1270c3a2396676 /gdb/testsuite | |
parent | 93598ea43dc26c3e427b046a1a2d07e13366e248 (diff) | |
download | gdb-8b12ded4e6a7f11d7fa4eabf119061a38716c143.zip gdb-8b12ded4e6a7f11d7fa4eabf119061a38716c143.tar.gz gdb-8b12ded4e6a7f11d7fa4eabf119061a38716c143.tar.bz2 |
gdb/testsuite: make test names unique in gdb.python/py-pp-maint.exp
Extend the test names with additional text to make them unique.
gdb/testsuite/ChangeLog:
* gdb.python/py-pp-maint.exp: Extend test names to make them
unique.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-pp-maint.exp | 15 |
2 files changed, 15 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9582b80..91ac3a6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2021-03-12 Andrew Burgess <andrew.burgess@embecosm.com> + * gdb.python/py-pp-maint.exp: Extend test names to make them + unique. + +2021-03-12 Andrew Burgess <andrew.burgess@embecosm.com> + * gdb.python/py-explore.exp: Add with_test_prefix to make test names unique. diff --git a/gdb/testsuite/gdb.python/py-pp-maint.exp b/gdb/testsuite/gdb.python/py-pp-maint.exp index f31fae5..4bda85a 100644 --- a/gdb/testsuite/gdb.python/py-pp-maint.exp +++ b/gdb/testsuite/gdb.python/py-pp-maint.exp @@ -66,13 +66,15 @@ gdb_test "disable pretty-printer" \ "$num_pp printers disabled.*0 of $num_pp printers enabled" gdb_test "enable pretty-printer" \ - "$num_pp printers enabled.*$num_pp of $num_pp printers enabled" + "$num_pp printers enabled.*$num_pp of $num_pp printers enabled" \ + "first enable of all pretty printers" gdb_test "disable pretty-printer global" \ "$num_pp printers disabled.*0 of $num_pp printers enabled" gdb_test "enable pretty-printer" \ - "$num_pp printers enabled.*$num_pp of $num_pp printers enabled" + "$num_pp printers enabled.*$num_pp of $num_pp printers enabled" \ + "second enable of all pretty printers" gdb_test "disable pretty-printer global lookup_function_lookup_test" \ "1 printer disabled.*[expr $num_pp - 1] of $num_pp printers enabled" @@ -81,10 +83,12 @@ gdb_test "disable pretty-printer global pp-test;.*" \ "[expr $num_pp - 2] printers disabled.*1 of $num_pp printers enabled" gdb_test "info pretty-printer global .*function" \ - {.*function_lookup_test \[disabled\].*} + {.*function_lookup_test \[disabled\].*} \ + "info pretty-printer for function, pretty-printer is disabled" gdb_test "info pretty-printer .* pp-test" \ - {.*pp-test.*struct ss \[disabled\].*} + {.*pp-test.*struct ss \[disabled\].*} \ + "info pretty-printer for pp-test, pretty-printer is disabled" gdb_test "print flt" " = {x = 42, y = 43}" \ "print flt disabled" @@ -111,7 +115,8 @@ gdb_test "enable pretty-printer global pp-test;.*" \ "1 printer enabled.*$num_pp of $num_pp printers enabled" gdb_test "info pretty-printer" \ - {.*function_lookup_test.*pp-test.*struct ss.*} + {.*function_lookup_test.*pp-test.*struct ss.*} \ + "info pretty-printer after re-enabling" gdb_test "print flt" " = x=<42> y=<43>" \ "print flt re-enabled" |