From: Pedro Alves Date: Thu, 28 Mar 2013 11:45:28 +0000 (+0000) Subject: list.exp: Adjust "set listsize -1" to current test source's real line count. X-Git-Tag: gdb_7_6-2013-04-26-release~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=356a543da7b771019e1d0fbed50daf8a5281e0a0;p=thirdparty%2Fbinutils-gdb.git list.exp: Adjust "set listsize -1" to current test source's real line count. The "set listsize -1" test in list.exp can't work correct anymore nowadays, because the test's source files grew over time, and this particular test was never updated. This fixes it in the obvious way. gdb/testsuite/ 2013-03-28 Pedro Alves * gdb.base/list.exp (test_listsize): Adjust test to make sure we list the whole file. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 396707263d1..37e50a84a97 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-03-28 Pedro Alves + + * gdb.base/list.exp (test_listsize): Adjust test to make sure we + list the whole file. + 2013-03-28 Pedro Alves * gdb.base/list.exp (set_listsize): Use gdb_test_no_output for diff --git a/gdb/testsuite/gdb.base/list.exp b/gdb/testsuite/gdb.base/list.exp index 07313ab4f64..60a2e82ddb8 100644 --- a/gdb/testsuite/gdb.base/list.exp +++ b/gdb/testsuite/gdb.base/list.exp @@ -138,7 +138,7 @@ proc test_listsize {} { set_listsize -1 setup_xfail "*-*-*" - gdb_test "list 1" "1\[ \t\]+#include .*\r\n39\[ \t\]+\}" "list line 1 with unlimited listsize" + gdb_test "list 1" "1\[ \t\]+#include .*\r\n43\[ \t\]+\}" "list line 1 with unlimited listsize" } #