[patch, testsuite] skip gdb.base/gdbhistsize-history.exp on remote hosts

Yao Qi qiyaoltc@gmail.com
Mon Dec 14 09:16:00 GMT 2015


Sandra Loosemore <sandra@codesourcery.com> writes:

> The testcase gdb.base/gdbhistsize-history.exp checks to see whether
> GDB pays attention to the environment variable GDBHISTSIZE.  But,
> setting the environment variable in the .exp script doesn't work when
> the host GDB is running on is remote (think of the case where
> gdb_start runs a ssh command to a remote host to invoke GDB).  It
> seems best just to skip this set of tests in this case.

For the record, these tests fail with local-remote-host-native board
file,

$ make check RUNTESTFLAGS="--host_board=local-remote-host-native --target_board=local-remote-host-native HOST_DIR=/tmp/foo/ gdbhistsize-history.exp"
FAIL: gdb.base/gdbhistsize-history.exp: histsize=: show history size
FAIL: gdb.base/gdbhistsize-history.exp: histsize=0: show history size
FAIL: gdb.base/gdbhistsize-history.exp: histsize=0: show commands
FAIL: gdb.base/gdbhistsize-history.exp: histsize=20: show history size
FAIL: gdb.base/gdbhistsize-history.exp: histsize= 20 : show history size
FAIL: gdb.base/gdbhistsize-history.exp: histsize=-5: show history size
FAIL: gdb.base/gdbhistsize-history.exp: histsize=99999999999999999999999999999999999: show history size

>
> OK to commit?

Yes, please.

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list