gdb/testsuite: Remove duplicates from gdb.base/ui-redirect.exp
authorLancelot SIX <lsix@lancelotsix.com>
Sun, 21 Nov 2021 00:20:56 +0000 (00:20 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:33 +0000 (22:43 +0000)
commitfdc3b97899bfc9bbd4a562816b7ee38ff712f61d
tree976814e7e5801b24d4a13385521479358bd464b6
parent86a839999883bc9d3ca304b0806cf50e171587cd
gdb/testsuite: Remove duplicates from gdb.base/ui-redirect.exp

When running the testsuite, I have:

    Running .../gdb/testsuite/gdb.base/ui-redirect.exp ...
    DUPLICATE: gdb.base/ui-redirect.exp: redirect while already logging: set logging redirect off

Fix by moving the first 'set logging redirect off' to the end of the
previous [with_test_prefix] test block. The statement's purpose is to
clean the on flag set in this previous block, so moving it there makes
sense and does not change the sequence of commands in the test file.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/ui-redirect.exp