summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/packed_array.exp
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-02-21 10:12:14 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-02-21 10:12:14 +0000
commit91033e3716b2eccc227992cde676198949941edf (patch)
treeaabe2b3ed9ea834307a3ad9e81ae0d0cb0ab77fb /gdb/testsuite/gdb.ada/packed_array.exp
parentf994e27a0ba0cb8488b78ba35a45795976311bb0 (diff)
downloadbinutils-gdb-91033e3716b2eccc227992cde676198949941edf.tar.gz
add xfail for "print u_var" test in gdb.ada/packed_array.exp
gdb/testsuite/ChangeLog: * gdb.ada/packed_array.exp: Add xfail for "print u_var" if the debugger is unable to find the array bounds.
Diffstat (limited to 'gdb/testsuite/gdb.ada/packed_array.exp')
-rw-r--r--gdb/testsuite/gdb.ada/packed_array.exp14
1 files changed, 12 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.ada/packed_array.exp b/gdb/testsuite/gdb.ada/packed_array.exp
index d7885bb739d..fc4dd170f92 100644
--- a/gdb/testsuite/gdb.ada/packed_array.exp
+++ b/gdb/testsuite/gdb.ada/packed_array.exp
@@ -53,6 +53,16 @@ gdb_test "print &var" \
# Print the value of U_Var, an unconstrainted packed array.
-gdb_test "print u_var" \
- "= \\(true, false, false, true, true, false\\)"
+set test "print u_var"
+gdb_test_multiple "$test" "$test" {
+ -re "= \\(true, false, false, true, true, false\\)\[\r\n\]+$gdb_prompt $" {
+ pass $test
+ }
+ -re "= \\(warning: unable to get bounds of array.*\\)\[\r\n\]+$gdb_prompt $" {
+ # The compiler forgot to emit the packed array's ___XA type,
+ # preventing us from determining the what the array bounds
+ # are. Observed with (FSF GNU Ada 4.5.3 20110124).
+ xfail $test
+ }
+}