This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch, testsuite] skip gdb.base/gdbinit-history.exp on remote hosts
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Sandra Loosemore <sandra at codesourcery dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 14 Dec 2015 09:10:13 +0000
- Subject: Re: [patch, testsuite] skip gdb.base/gdbinit-history.exp on remote hosts
- Authentication-results: sourceware.org; auth=none
- References: <55FA2703 dot 3000205 at codesourcery dot com>
Sandra Loosemore <sandra@codesourcery.com> writes:
> This patch is very similar to the one I posted for
> gdb.base/gdbhistsize-history.exp yesterday:
>
> https://sourceware.org/ml/gdb-patches/2015-09/msg00355.html
>
> The rationale is the same -- the test manipulates environment
> variables in the .exp script. When GDB is run on a remote host it
> doesn't inherit those environment variables, so the tests cannot
> possibly work.
Yes, I can trigger these fails in remote host testing too.
$ make check RUNTESTFLAGS="--host_board=local-remote-host-native --target_board=local-remote-host-native HOST_DIR=/tmp/foo/ gdbinit-history.exp"
FAIL: gdb.base/gdbinit-history.exp: home=gdbinit-history/unlimited: show history size
FAIL: gdb.base/gdbinit-history.exp: home=gdbinit-history/zero: show history size
FAIL: gdb.base/gdbinit-history.exp: home=gdbinit-history/zero: show commands
FAIL: gdb.base/gdbinit-history.exp: home=gdbinit-history/unlimited gdbhistsize=1000: show history size
FAIL: gdb.base/gdbinit-history.exp: home=gdbinit-history/unlimited gdbhistsize=foo: show history size
>
> OK to commit?
Yes, please.
--
Yao (éå)