Re: [PATCH] Don't truncate the history file when history size is unlimited

Pedro Alves
2015-06-17T12:46:49Z

On 06/16/2015 03:53 PM, Patrick Palka wrote:

> + # We have to start then exit GDB twice: the first time to test the creation
> + # of the initial history file, and the second time to test appending to it.
> + # In either case the initial "print 1" command should persist through the
> + # history file.
> + with_test_prefix "truncation" {
> + gdb_exit
> + gdb_start
> + gdb_test "print 1"
> +
> + gdb_exit
> + gdb_start
> + gdb_test "server show commands" " . print 1.*"
> +
> + gdb_exit
> + gdb_start
> + gdb_test "server show commands" " . print 1.*"

These two "show commands" tests have the same output message. The
patch is OK with that fixed.

Thanks for following through with the test.

Thanks,
Pedro Alves