This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/2] new-ui.exp: Use proc_with_prefix
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Fri, 10 Feb 2017 16:02:31 -0500
- Subject: [PATCH 1/2] new-ui.exp: Use proc_with_prefix
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=simon dot marchi at ericsson dot com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
gdb/testsuite/ChangeLog:
* gdb.base/new-ui.exp (do_test, do_test_invalid_args): Use
proc_with_prefix.
---
gdb/testsuite/gdb.base/new-ui.exp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gdb/testsuite/gdb.base/new-ui.exp b/gdb/testsuite/gdb.base/new-ui.exp
index 40bcc4b08b..8224b7d615 100644
--- a/gdb/testsuite/gdb.base/new-ui.exp
+++ b/gdb/testsuite/gdb.base/new-ui.exp
@@ -73,7 +73,7 @@ proc do_execution_tests {con1 con1_name con2 con2_name} {
# The test proper.
-proc do_test {} {
+proc_with_prefix do_test {} {
global srcfile testfile
global gdb_prompt
global gdb_spawn_id
@@ -145,7 +145,7 @@ proc do_test {} {
# Test missing / invalid arguments.
-proc do_test_invalid_args {} {
+proc_with_prefix do_test_invalid_args {} {
global testfile
clean_restart $testfile
@@ -169,5 +169,5 @@ proc do_test_invalid_args {} {
}
}
-with_test_prefix "do_test" do_test
-with_test_prefix "do_test_invalid_args" do_test_invalid_args
+do_test
+do_test_invalid_args
--
2.11.0