From a7b75dfda10bf308d3403f344186fc6fbbaa5631 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 20 May 2010 19:18:58 +0000 Subject: lib/gdb.exp: New gdb_test_no_output function. This new testsuite routine allows us to test commands that are not expected to generate any output. 2010-05-20 Pedro Alves Joel Brobecker * lib/gdb.exp (gdb_test_no_output): New function. * lib/gdb.ada/arrayidx.exp: Use gdb_test_no_output instead of gdb_test when testing commands that should produce no output. Tested on x86_64-linux. --- gdb/testsuite/gdb.ada/arrayidx.exp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gdb/testsuite/gdb.ada') diff --git a/gdb/testsuite/gdb.ada/arrayidx.exp b/gdb/testsuite/gdb.ada/arrayidx.exp index 13be845..3d45461 100644 --- a/gdb/testsuite/gdb.ada/arrayidx.exp +++ b/gdb/testsuite/gdb.ada/arrayidx.exp @@ -41,9 +41,7 @@ runto "p.adb:$bp_location" # First, print all the arrays without indexes -gdb_test "set print array-indexes off" \ - "" \ - "set print array-indexes to off" +gdb_test_no_output "set print array-indexes off" gdb_test "print one_two_three" \ "= \\(1, 2, 3\\)" \ @@ -79,9 +77,7 @@ gdb_test "print empty" \ # Next, print all the arrays with the indexes -gdb_test "set print array-indexes on" \ - "" \ - "set print array-indexes to on" +gdb_test_no_output "set print array-indexes on" gdb_test "print one_two_three" \ "= \\(1 => 1, 2 => 2, 3 => 3\\)" \ -- cgit v1.1