]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Avoid possible error in testExecRestart
authorJohn Ferlan <jferlan@redhat.com>
Tue, 23 Jul 2019 12:14:50 +0000 (08:14 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 23 Jul 2019 17:40:54 +0000 (13:40 -0400)
commitc8a4a02058af8788f1aeb32dec1d214aaeabf7a9
treed30dde657c8fd9a55f8b8793e885b881d7b675fa
parent6ae4f4a4ceb123417b732e869d53099983ae8d3f
tests: Avoid possible error in testExecRestart

If the dup2 fails, then we aren't going to get the correct result.

Found by Coverity

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Peter Krempa <pkrempa@redhat.com>
tests/virnetdaemontest.c