tests: be a bit more strict cleaning up fifos
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 28 Feb 2023 19:06:32 +0000 (19:06 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 1 Mar 2023 10:31:20 +0000 (10:31 +0000)
commitc997068077fbeabb8b3810bdf1592e5a0d7548c3
treee88bf1c705a50a150a03385d9eb1987ef4a46140
parentab4c1361090f8a7f408a72de4dcbb7a5b9134300
tests: be a bit more strict cleaning up fifos

When we re-factored we dropped the unlink() step which turns out to be
required for rmdir to do its thing. If we had been checking the return
value we would have noticed so lets do that with this fix.

Fixes: 68406d1085 (tests/unit: cleanups for test-io-channel-command)
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230228190653.1602033-4-alex.bennee@linaro.org>
tests/unit/test-io-channel-command.c