[1/2] gdb: Make testnames unique in gdb.base/commands.exp

Message ID 186d36e05b05c8e72fe74a73cfa1c8a0db7302e4.1534343840.git.andrew.burgess@embecosm.com
State New, archived
Headers

Commit Message

Andrew Burgess Aug. 15, 2018, 2:39 p.m. UTC
  gdb/testsuite/ChangeLog:

	* gdb.base/commands.exp (user_defined_command_case_sensitivity):
	Make test names unique.
---
 gdb/testsuite/ChangeLog             | 5 +++++
 gdb/testsuite/gdb.base/commands.exp | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
  

Comments

Tom Tromey Aug. 30, 2018, 3:26 p.m. UTC | #1
>>>>> "Andrew" == Andrew Burgess <andrew.burgess@embecosm.com> writes:

Andrew> gdb/testsuite/ChangeLog:
Andrew> 	* gdb.base/commands.exp (user_defined_command_case_sensitivity):
Andrew> 	Make test names unique.

This one is obsolete now due to

commit ead9aa39bfc80007336bc96c6374df7f79341485
Author: Philippe Waroquiers <philippe.waroquiers@skynet.be>
Date:   Thu Aug 2 23:15:23 2018 +0200

    Modify gdb.base/commands.exp to test multi breakpoints command clearing.

Tom
  

Patch

diff --git a/gdb/testsuite/gdb.base/commands.exp b/gdb/testsuite/gdb.base/commands.exp
index 259b89b803d..7ce33fdefa9 100644
--- a/gdb/testsuite/gdb.base/commands.exp
+++ b/gdb/testsuite/gdb.base/commands.exp
@@ -368,8 +368,8 @@  proc_with_prefix user_defined_command_case_sensitivity {} {
 
     gdb_test "print 456\nend" "" "enter commands 2"
 
-    gdb_test "Homer-Simpson" " = 123" "execute command"
-    gdb_test "HomeR-SimpsoN" " = 456" "execute command"
+    gdb_test "Homer-Simpson" " = 123" "execute first command"
+    gdb_test "HomeR-SimpsoN" " = 456" "execute second command"
     gdb_test "HOMER-SIMPSON" "Undefined command.*" "try to call in upper case"
     gdb_test "homer-simpson" "Undefined command.*" "try to call in lower case"
 }