test: move tty disabling closer to the actual running of the tests
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 16 Oct 2024 01:02:21 +0000 (11:02 +1000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 30 Oct 2024 23:20:42 +0000 (23:20 +0000)
commitd4c6c47677ace6792366aa02f92212c9b8cffb6e
treedeca934b218aed085e9d74888f9cdb6f58c9f9af
parentb81cc0ceb7659944ebefdd074764035769c23957
test: move tty disabling closer to the actual running of the tests

And move the litest-specific condition out into the caller so
disable_tty() only cares about the TTY, not any surrounding conditions.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1067>
test/litest.c