Fix gdb.fortran/nested-funcs.exp failure
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 8 Aug 2018 02:45:43 +0000 (22:45 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 8 Aug 2018 02:46:37 +0000 (22:46 -0400)
commit045cf012860ed0fd6c01892505cab747ee27a21d
treeca47ec3b6805f2327488b2f49389f3f6a30c73f5
parent09ce46f230fee766c386384cd1f5672d12fde276
Fix gdb.fortran/nested-funcs.exp failure

Commit 87d6a7aa931f ("Add DWARF index cache") broke
gdb.fortran/nested-funcs.exp.  Because of the new "set index-cache"
command, the expression "set index = 42" now fails:

  set index = 42
  Undefined set index-cache command: "= 42".  Try "help set index-cache".
  (gdb) PASS: gdb.fortran/nested-funcs.exp: set index = 42

Fix it by changing it to "set variable index = 42".  Also, use
gdb_test_no_output to confirm that it worked (since that particular test
wrongfully passed).

gdb/testsuite/ChangeLog:

* gdb.fortran/nested-funcs.exp: Replace "set index = 42" with
"set variable index = 42".
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/nested-funcs.exp