tests/qtest/bios-tables-test: Check for dup2() failure
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 25 May 2021 13:44:53 +0000 (14:44 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Jun 2021 15:43:27 +0000 (16:43 +0100)
commit3c65e439b2724cc70af31a87447a0c7292babac5
treee9744205a7649690384103141e7ddd1f3895ce6d
parentbac969ef30e8a8b73acbeb6d68abff6f68b2056c
tests/qtest/bios-tables-test: Check for dup2() failure

Coverity notes that we don't check for dup2() failing.  Add some
assertions so that if it does ever happen we get some indication.
(This is similar to how we handle other "don't expect this syscall to
fail" checks in this test code.)

Fixes: Coverity CID 1432346
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Message-id: 20210525134458.6675-2-peter.maydell@linaro.org
tests/qtest/bios-tables-test.c