Control: severity 989247 normal

Em dom., 30 de mai. de 2021 às 07:21, Paul Wise <p...@debian.org> escreveu:
> Using an ampersand at the end of a command means it never fails:
>
>    $ true ; false & echo $?
>    [1] 199336
>    0
>    [1]+  Exit 1                  false
>    $ false ; false & echo $?
>    [1] 199355
>    0
>    [1]+  Exit 1                  false
>
> Using xvfb-run with a terminal curses UI doesn't do anything over
> running it without xvfb-run.
>
>    hexedit-1.5 $ xvfb-run ls | head -n1
>    autogen.sh

hexedit is an interactive command and it needs an ampersand to run it
and exit from the testbed. The goal of the test is to run the hexedit
and check if it fails or not. Running this test over hexedit 1.5-1 and
an empty file (see #971796), we will have a fail and it will break the
test.

Test-Command: xvfb-run -a hexedit debian/tests/empty &
Depends: @, xauth, xvfb

command2             FAIL stderr: Floating point exception (core dumped)
autopkgtest [15:16:09]: test command2:  - - - - - - - - - - stderr - -
- - - - - - - -
Floating point exception (core dumped)
autopkgtest [15:16:09]: @@@@@@@@@@@@@@@@@@@@ summary
command1             PASS (superficial)
command2             FAIL stderr: Floating point exception (core dumped)

I am sure this test is useful and I think that it should remain in
debian/tests/control.

Regards,

Eriberto

Reply via email to