aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-07-02 09:32:51 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-09-18 10:51:35 +0100
commitd0edc2b8060e78eebf3dc39321e5546e9a94842c (patch)
treecb4cc6b9179e7343526f1a3fd43e36a5c04a3228 /gdb/testsuite
parentaab4ab89726464fcb9565befb667e8e1e817594f (diff)
downloadgdb-d0edc2b8060e78eebf3dc39321e5546e9a94842c.zip
gdb-d0edc2b8060e78eebf3dc39321e5546e9a94842c.tar.gz
gdb-d0edc2b8060e78eebf3dc39321e5546e9a94842c.tar.bz2
gdb/testsuite: Add missing expected results
The tests in this script are driven from two lists of expected results, one of the lists is missing some data so DejaGNU ends up passing the empty string to gdb_test, which means the test always passes. This commit adds the missing expected results into the script. The tests still pass so there's no change in the results, but we are now actually checking GDB's behaviour. gdb/testsuite/ChangeLog: * gdb.fortran/array-slices.exp: Add missing message data.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.fortran/array-slices.exp5
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 4034c73..574c63a 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * gdb.fortran/array-slices.exp: Add missing message data.
+
2020-09-17 Pedro Alves <pedro@palves.net>
* gdb.cp/call-c-1.c (foo) [__cplusplus]: Add extern "C".
diff --git a/gdb/testsuite/gdb.fortran/array-slices.exp b/gdb/testsuite/gdb.fortran/array-slices.exp
index 4ca1db9..b1c7209 100644
--- a/gdb/testsuite/gdb.fortran/array-slices.exp
+++ b/gdb/testsuite/gdb.fortran/array-slices.exp
@@ -53,7 +53,10 @@ set message_strings \
" = 'array \\(1:5,1:5\\)'" \
" = 'array \\(1:10:2,1:10:2\\)'" \
" = 'array \\(1:10:3,1:10:2\\)'" \
- " = 'array \\(1:10:5,1:10:3\\)'" ]
+ " = 'array \\(1:10:5,1:10:3\\)'" \
+ " = 'other'" \
+ " = 'other \\(-5:0, -2:0\\)'" \
+ " = 'other \\(-5:4:2, -2:7:3\\)'" ]
set i 0
foreach result $array_contents msg $message_strings {