diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-05-20 19:18:58 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-05-20 19:18:58 +0000 |
commit | a7b75dfda10bf308d3403f344186fc6fbbaa5631 (patch) | |
tree | b0d316924ccd5fff2d74c0242518f92daad566a5 /gdb/testsuite/gdb.ada | |
parent | 8148cf8d75e7d4f891976b3a6a85a7203f8c65b2 (diff) | |
download | gdb-a7b75dfda10bf308d3403f344186fc6fbbaa5631.zip gdb-a7b75dfda10bf308d3403f344186fc6fbbaa5631.tar.gz gdb-a7b75dfda10bf308d3403f344186fc6fbbaa5631.tar.bz2 |
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 <pedro@codesourcery.com>
Joel Brobecker <brobecker@adacore.com>
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.ada')
-rw-r--r-- | gdb/testsuite/gdb.ada/arrayidx.exp | 8 |
1 files changed, 2 insertions, 6 deletions
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\\)" \ |