diff options
author | Jan Vrany <jan.vrany@labware.com> | 2021-02-26 14:34:04 +0000 |
---|---|---|
committer | Jan Vrany <jan.vrany@labware.com> | 2021-02-26 14:34:04 +0000 |
commit | f821878623bb86d38e6c1579799038f495d09b61 (patch) | |
tree | 8c0b3e58529a01fb53ee5c5f816b861270c1609e /gdb | |
parent | 32e4f96ceca798ad21f344e96667de9161c0b857 (diff) | |
download | binutils-f821878623bb86d38e6c1579799038f495d09b61.zip binutils-f821878623bb86d38e6c1579799038f495d09b61.tar.gz binutils-f821878623bb86d38e6c1579799038f495d09b61.tar.bz2 |
testsuite: Remove extra \n from expected output of tsv notifications
Commit 2450ad54 removed extra trailing \n from tsv notifications but
did not update gdb.trace/mi-tsv-changed.exp accordingly. This commit
removes the extra \n from expected output so gdb.trace/mi-tsv-changed.exp
passes again.
gdb/testsuite/ChangeLog:
* gdb.trace/mi-tsv-changed.exp (test_create_delete_modify_tsv):
Remove trailing \n from expected output.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.trace/mi-tsv-changed.exp | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c64ad97..d29f6d4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-02-26 Jan Vrany <jan.vrany@labware.com> + + * gdb.trace/mi-tsv-changed.exp (test_create_delete_modify_tsv): + Remove trailing \n from expected output. + 2021-02-26 Markus Metzger <markus.t.metzger@intel.com> * lib/gdb.exp (use_gdb_stub): Extend comment. diff --git a/gdb/testsuite/gdb.trace/mi-tsv-changed.exp b/gdb/testsuite/gdb.trace/mi-tsv-changed.exp index c5ec52d..b3d01e8 100644 --- a/gdb/testsuite/gdb.trace/mi-tsv-changed.exp +++ b/gdb/testsuite/gdb.trace/mi-tsv-changed.exp @@ -45,7 +45,7 @@ proc test_create_delete_modify_tsv { } { mi_gdb_load ${binfile} mi_gdb_test "tvariable \$tvar1" \ - ".*=tsv-created,name=\"tvar1\",initial=\"0\"\\\\n.*\\^done" \ + ".*=tsv-created,name=\"tvar1\",initial=\"0\".*\\^done" \ "tvariable \$tvar1" mi_gdb_test "tvariable \$tvar1 = 1" \ ".*=tsv-modified,name=\"tvar1\",initial=\"1\".*\\^done" \ @@ -53,18 +53,18 @@ proc test_create_delete_modify_tsv { } { # No "=tsv-modified" notification is emitted, because the initial # value is not changed. mi_gdb_test "tvariable \$tvar1 = 1" \ - ".*\\\$tvar1 = 1\\\\n\"\r\n~\"Trace state .*\\\\n.*\\^done" \ + ".*\\\$tvar1 = 1\\\\n\"\r\n~\"Trace state .*.*\\^done" \ "tvariable \$tvar1 modified without notification" mi_gdb_test "tvariable \$tvar2 = 45" \ - ".*=tsv-created,name=\"tvar2\",initial=\"45\"\\\\n.*\\^done" \ + ".*=tsv-created,name=\"tvar2\",initial=\"45\".*\\^done" \ "tvariable \$tvar2" mi_gdb_test "delete tvariable \$tvar2" \ - ".*=tsv-deleted,name=\"tvar2\"\\\\n.*\\^done" \ + ".*=tsv-deleted,name=\"tvar2\".*\\^done" \ "delete tvariable \$tvar2" mi_gdb_test "delete tvariable" \ - ".*=tsv-deleted\\\\n.*\\^done" \ + ".*=tsv-deleted.*\\^done" \ "delete all tvariables" # Test target supports tracepoints or not. |