tests/unit/test-vmstate: Assert that dup() and mkstemp() succeed
commit1c861885894d840235954060050d240259f5340b
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 25 May 2021 13:44:58 +0000 (25 14:44 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Jun 2021 15:43:27 +0000 (3 16:43 +0100)
tree05ffaa4e20018c74d89d3a91eb3edbc66111e0c0
parentd2304612b525e6a0d9df93717c0d1e5321b6b845
tests/unit/test-vmstate: Assert that dup() and mkstemp() succeed

Coverity complains that we don't check for failures from dup()
and mkstemp(); add asserts that these syscalls succeeded.

Fixes: Coverity CID 14325161432574
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20210525134458.6675-7-peter.maydell@linaro.org
tests/unit/test-vmstate.c