diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-09-10 17:11:11 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-09-10 17:11:11 +0000 |
commit | b6db24e54972d0345d708ea0ec3d108f9a147f52 (patch) | |
tree | b61af5a7fa14d4ae18d05546ce42538efcfb8155 /gdb/testsuite/gdb.ada | |
parent | 2bf448e0dcc2bd35ebb44382c15b6a902cdb08c9 (diff) | |
download | gdb-b6db24e54972d0345d708ea0ec3d108f9a147f52.zip gdb-b6db24e54972d0345d708ea0ec3d108f9a147f52.tar.gz gdb-b6db24e54972d0345d708ea0ec3d108f9a147f52.tar.bz2 |
* gdb.ada/array_bounds.exp, gdb.ada/array_subscript_addr.exp,
gdb.ada/arrayidx.exp, gdb.ada/arrayparam.exp, gdb.ada/arrayptr.exp,
gdb.ada/assign_1.exp, gdb.ada/boolean_expr.exp,
gdb.ada/char_param.exp, gdb.ada/exprs.exp, gdb.ada/fixed_cmp.exp,
gdb.ada/fixed_points.exp, gdb.ada/fun_addr.exp,
gdb.ada/funcall_param.exp, gdb.ada/homonym.exp,
gdb.ada/interface.exp, gdb.ada/null_array.exp,
gdb.ada/packed_array.exp, gdb.ada/packed_tagged.exp,
gdb.ada/print_chars.exp, gdb.ada/print_pc.exp,
gdb.ada/str_ref_cmp.exp, gdb.ada/sym_print_name.exp,
gdb.ada/taft_type.exp, gdb.ada/tagged.exp, gdb.ada/type_coercion.exp:
Include the "= " sequence in the expected output of print tests.
Diffstat (limited to 'gdb/testsuite/gdb.ada')
25 files changed, 67 insertions, 67 deletions
diff --git a/gdb/testsuite/gdb.ada/array_bounds.exp b/gdb/testsuite/gdb.ada/array_bounds.exp index 54753ca..f5365f7 100644 --- a/gdb/testsuite/gdb.ada/array_bounds.exp +++ b/gdb/testsuite/gdb.ada/array_bounds.exp @@ -41,18 +41,18 @@ if ![runto "bar.adb:$bp_location" ] then { } gdb_test "print itable'first" \ - "2" \ + "= 2" \ "print itable'first" gdb_test "print itable'last" \ - "5" \ + "= 5" \ "print itable'last" gdb_test "print table'first" \ - "zero" \ + "= zero" \ "print table'first" gdb_test "print table'last" \ - "two" \ + "= two" \ "print table'last" diff --git a/gdb/testsuite/gdb.ada/array_subscript_addr.exp b/gdb/testsuite/gdb.ada/array_subscript_addr.exp index 7b517ee..2edce85 100644 --- a/gdb/testsuite/gdb.ada/array_subscript_addr.exp +++ b/gdb/testsuite/gdb.ada/array_subscript_addr.exp @@ -40,6 +40,6 @@ runto "p.adb:$bp_location" # Verify that we can compare a string slice with another string. gdb_test "print a(2)'Address" \ - "\\(system\\.address\\) 0x\[0-9a-fA-F\]+" \ + "= \\(system\\.address\\) 0x\[0-9a-fA-F\]+" \ "print a(2)'Address" diff --git a/gdb/testsuite/gdb.ada/arrayidx.exp b/gdb/testsuite/gdb.ada/arrayidx.exp index 35bf239..e582743 100644 --- a/gdb/testsuite/gdb.ada/arrayidx.exp +++ b/gdb/testsuite/gdb.ada/arrayidx.exp @@ -44,35 +44,35 @@ gdb_test "set print array-indexes off" \ "set print array-indexes to off" gdb_test "print one_two_three" \ - "\\(1, 2, 3\\)" \ + "= \\(1, 2, 3\\)" \ "print one_two_three, indexes off" gdb_test "print e_one_two_three" \ - "\\(1, 2, 3\\)" \ + "= \\(1, 2, 3\\)" \ "print e_one_two_three, indexes off" gdb_test "print r_two_three" \ - "\\(two => 2, 3\\)" \ + "= \\(two => 2, 3\\)" \ "print r_two_three, indexes off" gdb_test "print u_one_two_three" \ - "\\(1, 2, 3\\)" \ + "= \\(1, 2, 3\\)" \ "print u_one_two_three, indexes off" gdb_test "print p_one_two_three" \ - "\\(0 => false, true, true\\)" \ + "= \\(0 => false, true, true\\)" \ "print p_one_two_three, indexes off" gdb_test "print few_reps" \ - "\\(1, 2, 3, 3, 3, 3, 3, 4, 5\\)" \ + "= \\(1, 2, 3, 3, 3, 3, 3, 4, 5\\)" \ "print few_reps, indexes off" gdb_test "print many_reps" \ - "\\(1, 2, 3 <repeats 12 times>, 4, 5\\)" \ + "= \\(1, 2, 3 <repeats 12 times>, 4, 5\\)" \ "print many_reps, indexes off" gdb_test "print empty" \ - "\\(\\)" \ + "= \\(\\)" \ "print empty, indexes off" # Next, print all the arrays with the indexes @@ -82,35 +82,35 @@ gdb_test "set print array-indexes on" \ "set print array-indexes to on" gdb_test "print one_two_three" \ - "\\(1 => 1, 2 => 2, 3 => 3\\)" \ + "= \\(1 => 1, 2 => 2, 3 => 3\\)" \ "print one_two_three" gdb_test "print e_one_two_three" \ - "\\(one => 1, two => 2, three => 3\\)" \ + "= \\(one => 1, two => 2, three => 3\\)" \ "print e_one_two_three" gdb_test "print r_two_three" \ - "\\(two => 2, three => 3\\)" \ + "= \\(two => 2, three => 3\\)" \ "print r_two_three" gdb_test "print u_one_two_three" \ - "\\(1 => 1, 2 => 2, 3 => 3\\)" \ + "= \\(1 => 1, 2 => 2, 3 => 3\\)" \ "print u_one_two_three" gdb_test "print p_one_two_three" \ - "\\(0 => false, 1 => true, 2 => true\\)" \ + "= \\(0 => false, 1 => true, 2 => true\\)" \ "print p_one_two_three" gdb_test "print few_reps" \ - "\\(1 => 1, 2 => 2, 3 => 3, 4 => 3, 5 => 3, 6 => 3, 7 => 3, 8 => 4, 9 => 5\\)" \ + "= \\(1 => 1, 2 => 2, 3 => 3, 4 => 3, 5 => 3, 6 => 3, 7 => 3, 8 => 4, 9 => 5\\)" \ "print few_reps" gdb_test "print many_reps" \ - "\\(1 => 1, 2 => 2, 3 => 3 <repeats 12 times>, 15 => 4, 16 => 5\\)" \ + "= \\(1 => 1, 2 => 2, 3 => 3 <repeats 12 times>, 15 => 4, 16 => 5\\)" \ "print many_reps" gdb_test "print empty" \ - "\\(\\)" \ + "= \\(\\)" \ "print empty" diff --git a/gdb/testsuite/gdb.ada/arrayparam.exp b/gdb/testsuite/gdb.ada/arrayparam.exp index e123d6e..645fbb3 100644 --- a/gdb/testsuite/gdb.ada/arrayparam.exp +++ b/gdb/testsuite/gdb.ada/arrayparam.exp @@ -41,21 +41,21 @@ runto "foo.adb:$bp_location" # works without problem. gdb_test "print call_me (\"bonjour\")" \ - "void" \ + "= void" \ "print call_me (\"bonjour\")" # Verify that the array was passed properly by checking the global # variables that Call_Me sets as side-effects. gdb_test "print first" \ - "98 'b'" \ + "= 98 'b'" \ "print first after function call" gdb_test "print last" \ - "114 'r'" \ + "= 114 'r'" \ "print lasta after function call" gdb_test "print length" \ - "7" \ + "= 7" \ "print length after function call" diff --git a/gdb/testsuite/gdb.ada/arrayptr.exp b/gdb/testsuite/gdb.ada/arrayptr.exp index 7335475..024cab4 100644 --- a/gdb/testsuite/gdb.ada/arrayptr.exp +++ b/gdb/testsuite/gdb.ada/arrayptr.exp @@ -41,6 +41,6 @@ if ![runto "foo.adb:$bp_location" ] then { } gdb_test "print string_p" \ - "\\(foo\\.string_access\\) 0x\[0-9a-zA-Z\]+" \ + "= \\(foo\\.string_access\\) 0x\[0-9a-zA-Z\]+" \ "print string_p" diff --git a/gdb/testsuite/gdb.ada/assign_1.exp b/gdb/testsuite/gdb.ada/assign_1.exp index 2255311..b9093cb 100644 --- a/gdb/testsuite/gdb.ada/assign_1.exp +++ b/gdb/testsuite/gdb.ada/assign_1.exp @@ -30,7 +30,7 @@ gdb_test "set lang ada" \ "Changing the language to ada" gdb_test "print \$xxx := 1" \ - "1" \ + "= 1" \ "set convenience variable \$xxx to 1" diff --git a/gdb/testsuite/gdb.ada/boolean_expr.exp b/gdb/testsuite/gdb.ada/boolean_expr.exp index efb3e12..decbcba 100644 --- a/gdb/testsuite/gdb.ada/boolean_expr.exp +++ b/gdb/testsuite/gdb.ada/boolean_expr.exp @@ -33,10 +33,10 @@ gdb_test "set lang ada" \ "Changing the language to ada" gdb_test "print 1 = 2" \ - "false" \ + "= false" \ "print 1 = 2" gdb_test "print 3 = 3" \ - "true" \ + "= true" \ "print 3 = 3" diff --git a/gdb/testsuite/gdb.ada/char_param.exp b/gdb/testsuite/gdb.ada/char_param.exp index b81eebb..db3805f 100644 --- a/gdb/testsuite/gdb.ada/char_param.exp +++ b/gdb/testsuite/gdb.ada/char_param.exp @@ -43,7 +43,7 @@ runto "foo.adb:$bp_location" # the function call. gdb_test "print procedure_result" \ - "32 ' '" \ + "= 32 ' '" \ "print procedure_result before calling same" gdb_test "call same (first)" \ @@ -51,15 +51,15 @@ gdb_test "call same (first)" \ "call same" gdb_test "print procedure_result" \ - "97 'a'" \ + "= 97 'a'" \ "print procedure_result after calling same" gdb_test "call next (first)" \ - "98 'b'" \ + "= 98 'b'" \ "call next" gdb_test "print procedure_result" \ - "98 'b'" \ + "= 98 'b'" \ "print procedure_result after calling next" diff --git a/gdb/testsuite/gdb.ada/exprs.exp b/gdb/testsuite/gdb.ada/exprs.exp index 0283bb1..7859368 100644 --- a/gdb/testsuite/gdb.ada/exprs.exp +++ b/gdb/testsuite/gdb.ada/exprs.exp @@ -38,13 +38,13 @@ set bp_location [gdb_get_line_number "START" ${testdir}/p.adb] runto "p.adb:$bp_location" gdb_test "print X ** Y = Z" \ - "true" \ + "= true" \ "Long_Long_Integer ** Y" gdb_test "print long_float'min (long_float (X), 8.0)" \ - "7.0" \ + "= 7.0" \ "long_float'min" gdb_test "print long_float'max (long_float (X), 8.0)" \ - "8.0" \ + "= 8.0" \ "long_float'max" diff --git a/gdb/testsuite/gdb.ada/fixed_cmp.exp b/gdb/testsuite/gdb.ada/fixed_cmp.exp index 59feca9..2697143 100644 --- a/gdb/testsuite/gdb.ada/fixed_cmp.exp +++ b/gdb/testsuite/gdb.ada/fixed_cmp.exp @@ -38,20 +38,20 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/fixed.adb] runto "fixed.adb:$bp_location" gdb_test "print My_Var > 10.0" \ - "true" \ + "= true" \ "print My_Var > 10.0" gdb_test "print My_Var > 20.0" \ - "false" \ + "= false" \ "print My_Var > 20.0" # Do the same, but with integer values. gdb_test "print My_Var > 10" \ - "true" \ + "= true" \ "print My_Var > 10" gdb_test "print My_Var > 20" \ - "false" \ + "= false" \ "print My_Var > 20" diff --git a/gdb/testsuite/gdb.ada/fixed_points.exp b/gdb/testsuite/gdb.ada/fixed_points.exp index 5735d3f..62d427b 100644 --- a/gdb/testsuite/gdb.ada/fixed_points.exp +++ b/gdb/testsuite/gdb.ada/fixed_points.exp @@ -38,13 +38,13 @@ set bp_location [gdb_get_line_number "Set breakpoint here" ${testdir}/fixed_poin runto "fixed_points.adb:$bp_location" gdb_test "print base_object" \ - ".* = -50" \ + "= -50" \ "p on a fixed point type" gdb_test "print subtype_object" \ - ".* = -50" \ + "= -50" \ "p on a subtype fixed point type" gdb_test "print new_type_object" \ - ".* = -50" \ + "= -50" \ "p on a new fixed point type" diff --git a/gdb/testsuite/gdb.ada/fun_addr.exp b/gdb/testsuite/gdb.ada/fun_addr.exp index f706d61..477c8a9 100644 --- a/gdb/testsuite/gdb.ada/fun_addr.exp +++ b/gdb/testsuite/gdb.ada/fun_addr.exp @@ -38,7 +38,7 @@ gdb_load ${binfile} # the inferior is *not* running (no frame). gdb_test "print foo'address" \ - "0x\[0-9a-zA-Z\]+" \ + "= .* 0x\[0-9a-zA-Z\]+" \ "print foo'address" diff --git a/gdb/testsuite/gdb.ada/funcall_param.exp b/gdb/testsuite/gdb.ada/funcall_param.exp index 0b6a15c..f6bc984 100644 --- a/gdb/testsuite/gdb.ada/funcall_param.exp +++ b/gdb/testsuite/gdb.ada/funcall_param.exp @@ -41,6 +41,6 @@ runto "foo.adb:$bp_location" # class-wide. gdb_test "p ident (ident (my_parameter))" \ - "\\(one => 1, two => 2, three => 3\\)" \ + "= \\(one => 1, two => 2, three => 3\\)" \ "p ident (ident (my_parameter))" diff --git a/gdb/testsuite/gdb.ada/homonym.exp b/gdb/testsuite/gdb.ada/homonym.exp index ca020d5..e59a07c 100644 --- a/gdb/testsuite/gdb.ada/homonym.exp +++ b/gdb/testsuite/gdb.ada/homonym.exp @@ -58,7 +58,7 @@ gdb_test "ptype lcl" \ "ptype lcl at BREAK_1" gdb_test "print lcl" \ - "29" \ + "= 29" \ "print lcl at BREAK_1" # Now, continue until reaching BREAK_2, and do the same commands @@ -87,7 +87,7 @@ gdb_test "ptype lcl" \ "ptype lcl at BREAK_2" gdb_test "print lcl" \ - "17" \ + "= 17" \ "print lcl at BREAK_2" diff --git a/gdb/testsuite/gdb.ada/interface.exp b/gdb/testsuite/gdb.ada/interface.exp index f9f7770..5c6ff86 100644 --- a/gdb/testsuite/gdb.ada/interface.exp +++ b/gdb/testsuite/gdb.ada/interface.exp @@ -38,11 +38,11 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb] runto "foo.adb:$bp_location" gdb_test "print r" \ - "\\(x => 1, y => 2, w => 3, h => 4\\)" \ + "= \\(x => 1, y => 2, w => 3, h => 4\\)" \ "print r" gdb_test "print s" \ - "\\(x => 1, y => 2, w => 3, h => 4\\)" \ + "= \\(x => 1, y => 2, w => 3, h => 4\\)" \ "print s" diff --git a/gdb/testsuite/gdb.ada/null_array.exp b/gdb/testsuite/gdb.ada/null_array.exp index 7ab9b70..8b9e38d 100644 --- a/gdb/testsuite/gdb.ada/null_array.exp +++ b/gdb/testsuite/gdb.ada/null_array.exp @@ -38,7 +38,7 @@ set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb] runto "foo.adb:$bp_location" gdb_test "print my_table" \ - "\\(\\)" \ + "= \\(\\)" \ "print my_table" gdb_test "ptype my_table" \ @@ -46,5 +46,5 @@ gdb_test "ptype my_table" \ "ptype my_table" gdb_test "print my_matrix" \ - "\\(m => \\((\"\", ){9}\"\"\\)\\)" \ + "= \\(m => \\((\"\", ){9}\"\"\\)\\)" \ "print my_matrix" diff --git a/gdb/testsuite/gdb.ada/packed_array.exp b/gdb/testsuite/gdb.ada/packed_array.exp index 15989b8..3b80841 100644 --- a/gdb/testsuite/gdb.ada/packed_array.exp +++ b/gdb/testsuite/gdb.ada/packed_array.exp @@ -38,7 +38,7 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/pa.adb] runto "pa.adb:$bp_location" gdb_test "print var" \ - ".* = \\(4 => true, false, true, false, true\\)" \ + "= \\(4 => true, false, true, false, true\\)" \ "print var" # Try printing the value and the type definition of a reference @@ -49,5 +49,5 @@ gdb_test "ptype &var" \ "ptype &var" gdb_test "print &var" \ - "\\(access array \\(\\.\\.\\.\\) of boolean\\) \\(4 => true, false, true, false, true\\)" \ + "= \\(access array \\(\\.\\.\\.\\) of boolean\\) \\(4 => true, false, true, false, true\\)" \ "print &var" diff --git a/gdb/testsuite/gdb.ada/packed_tagged.exp b/gdb/testsuite/gdb.ada/packed_tagged.exp index fcf9778..318c25b 100644 --- a/gdb/testsuite/gdb.ada/packed_tagged.exp +++ b/gdb/testsuite/gdb.ada/packed_tagged.exp @@ -49,7 +49,7 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/comp_bug.adb] runto "comp_bug.adb:$bp_location" gdb_test "print x" \ - "\\(exists => true, value => 10\\)" \ + "= \\(exists => true, value => 10\\)" \ "print x" gdb_test "ptype x" \ diff --git a/gdb/testsuite/gdb.ada/print_chars.exp b/gdb/testsuite/gdb.ada/print_chars.exp index 1607b0a..e29fe2c 100644 --- a/gdb/testsuite/gdb.ada/print_chars.exp +++ b/gdb/testsuite/gdb.ada/print_chars.exp @@ -39,15 +39,15 @@ runto "foo.adb:$bp_location" gdb_test "print C" \ - "97 'a'" \ + "= 97 'a'" \ "print C" gdb_test "print WC" \ - "98 'b'" \ + "= 98 'b'" \ "print WC" gdb_test "print WWC" \ - "99 'c'" \ + "= 99 'c'" \ "print WWC" diff --git a/gdb/testsuite/gdb.ada/print_pc.exp b/gdb/testsuite/gdb.ada/print_pc.exp index 555ef10..846f5e1 100644 --- a/gdb/testsuite/gdb.ada/print_pc.exp +++ b/gdb/testsuite/gdb.ada/print_pc.exp @@ -44,5 +44,5 @@ gdb_test "" \ "start inferior" gdb_test "p /x \$pc" \ - "0x\[0-9a-zA-Z\]+" \ + "= 0x\[0-9a-zA-Z\]+" \ "p /x \$pc" diff --git a/gdb/testsuite/gdb.ada/str_ref_cmp.exp b/gdb/testsuite/gdb.ada/str_ref_cmp.exp index bb071a6..dc36667 100644 --- a/gdb/testsuite/gdb.ada/str_ref_cmp.exp +++ b/gdb/testsuite/gdb.ada/str_ref_cmp.exp @@ -40,10 +40,10 @@ runto "foo.adb:$bp_location" # Verify that we can compare a string slice with another string. gdb_test "print String_Var (1 .. 3) = \"Hel\"" \ - "true" \ + "= true" \ "print String_Var (1 .. 3) = \"Hel\"" gdb_test "print String_Var (1 .. 3) = \"hel\"" \ - "false" \ + "= false" \ "print String_Var (1 .. 3) = \"hel\"" diff --git a/gdb/testsuite/gdb.ada/sym_print_name.exp b/gdb/testsuite/gdb.ada/sym_print_name.exp index 6a98abf..bd2b941 100644 --- a/gdb/testsuite/gdb.ada/sym_print_name.exp +++ b/gdb/testsuite/gdb.ada/sym_print_name.exp @@ -68,6 +68,6 @@ gdb_test_multiple "print i" "$test_name" \ # Select the first choice from the multiple-choice menu above. gdb_test "1" \ - "48" \ + "= 48" \ "select first choice from multiple-choice menu" diff --git a/gdb/testsuite/gdb.ada/taft_type.exp b/gdb/testsuite/gdb.ada/taft_type.exp index 290ed24..e3d7a1e 100644 --- a/gdb/testsuite/gdb.ada/taft_type.exp +++ b/gdb/testsuite/gdb.ada/taft_type.exp @@ -41,6 +41,6 @@ if ![runto "p.adb:$bp_location" ] then { } gdb_test "print w.e.all" \ - "\\(month => 8, year => 1974\\)" \ + "= \\(month => 8, year => 1974\\)" \ "print w.e.all" diff --git a/gdb/testsuite/gdb.ada/tagged.exp b/gdb/testsuite/gdb.ada/tagged.exp index 981203d..eb044a7 100644 --- a/gdb/testsuite/gdb.ada/tagged.exp +++ b/gdb/testsuite/gdb.ada/tagged.exp @@ -58,7 +58,7 @@ gdb_test "ptype segm" \ "ptype segm" gdb_test "print segm" \ - "\\(position => 74, width => 8\\)" \ + "= \\(position => 74, width => 8\\)" \ "print segm" # Now, test printing of an class-wide object. @@ -70,7 +70,7 @@ gdb_test "ptype obj" \ "ptype obj" gdb_test "print obj" \ - "\\(position => 74, width => 8\\)" \ + "= \\(position => 74, width => 8\\)" \ "print obj" diff --git a/gdb/testsuite/gdb.ada/type_coercion.exp b/gdb/testsuite/gdb.ada/type_coercion.exp index c0174a2..b735c53 100644 --- a/gdb/testsuite/gdb.ada/type_coercion.exp +++ b/gdb/testsuite/gdb.ada/type_coercion.exp @@ -38,7 +38,7 @@ set bp_location [gdb_get_line_number "START" ${testdir}/assign.adb] runto "assign.adb:$bp_location" gdb_test "p q" \ - "\\(2, 3, 5, 7, 11\\)" \ + "= \\(2, 3, 5, 7, 11\\)" \ "p q" gdb_test "set \$addr := q'address" \ @@ -46,7 +46,7 @@ gdb_test "set \$addr := q'address" \ "save q'address in convenience variable" gdb_test "p {Integer} \$addr" \ - "2" \ + "= 2" \ "print {Integer} \$addr" # Now change the value at $addr using the same "{TYPE}" syntax. @@ -56,7 +56,7 @@ gdb_test "set {Integer} \$addr := 19" \ "set {Integer} \$addr := 19" gdb_test "p q" \ - "\\(19, 3, 5, 7, 11\\)" \ + "= \\(19, 3, 5, 7, 11\\)" \ "p q" |